mirror of
https://github.com/mudabbir-ahmad/MAD-Treasure-Hunt.git
synced 2026-10-08 03:00:20 +00:00
Add pending admin state handling and update navigation logic for admin approval
This commit is contained in:
1 parent
41b0b723ca
commit
f69ead8e45
7 files changed
+148
-11
No files matched your search
@@ -184,6 +184,14 @@ const LeaderboardScreen = ({navigation, route}) => {
|
||||
);
|
||||
}
|
||||
|
||||
if (session.isPendingAdmin && !session.isAcceptedAdmin) {
|
||||
return (
|
||||
<Screen style={styles.center}>
|
||||
<Text style={styles.body}>Waiting for admin approval. You will get access once approved.</Text>
|
||||
</Screen>
|
||||
);
|
||||
}
|
||||
|
||||
if (isBusiness && isAdmin && !selectedDepartment) {
|
||||
return (
|
||||
<Screen style={styles.container}>
|
||||
|
||||
Reference in new issue
Block a user