mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2025-06-28 16:25:46 +08:00
Improved drawer logout and activation page
This commit is contained in:
parent
13a24ef87a
commit
877da5123a
2 changed files with 29 additions and 17 deletions
|
@ -48,7 +48,8 @@ export default function CustomDrawerContent(props: {}) {
|
|||
color={colors.blue_2}
|
||||
onPress={async () => {
|
||||
dispatch(await clear());
|
||||
AsyncStorage.clear();
|
||||
await AsyncStorage.clear();
|
||||
navigation.navigate("Home");
|
||||
}}
|
||||
>
|
||||
<LogoutIcon size={32} />
|
||||
|
@ -90,7 +91,7 @@ export default function CustomDrawerContent(props: {}) {
|
|||
color={colors.blue_2}
|
||||
onPress={() => {
|
||||
dispatch(clear());
|
||||
navigation.navigate("Login");
|
||||
navigation.navigate("Register");
|
||||
}}
|
||||
>
|
||||
<SignupIcon size={32} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue