amalia/22-apr-26 #40

Merged
amaliadwiy merged 2 commits from amalia/22-apr-26 into join 2026-04-22 17:30:06 +08:00
2 changed files with 24 additions and 1 deletions
Showing only changes of commit 0bad792ce8 - Show all commits

View File

@@ -65,6 +65,16 @@ export default function Home() {
}
}, [profile, signOut])
useEffect(() => {
if (profile && profile.villageIsActive === false) {
Alert.alert(
'Desa Dinonaktifkan',
'Desa kamu saat ini telah dinonaktifkan. Silahkan hubungi pengelola sistem untuk informasi lebih lanjut.',
[{ text: 'OK', onPress: signOut }]
)
}
}, [profile, signOut])
const handleRefresh = async () => {
setRefreshing(true)
// Invalidate all queries related to the home screen