Only show user info in sidebar when logged in

This commit is contained in:
Keannu Bernasol 2023-07-17 13:20:53 +08:00
parent caaf113777
commit e8ef9e10c8

View file

@ -45,6 +45,15 @@ export default function CustomDrawerContent(props: {}) {
<HomeIcon size={32} />
<Text style={styles.text_white_medium}>Home</Text>
</DrawerButton>
<DrawerButton
color={colors.blue_2}
onPress={() => {
navigation.navigate("UserInfo");
}}
>
<UserIcon size={32} />
<Text style={styles.text_white_medium}>UserInfo</Text>
</DrawerButton>
<DrawerButton
color={colors.blue_2}
onPress={async () => {
@ -98,15 +107,7 @@ export default function CustomDrawerContent(props: {}) {
<SignupIcon size={32} />
<Text style={styles.text_white_medium}>Register</Text>
</DrawerButton>
<DrawerButton
color={colors.blue_2}
onPress={() => {
navigation.navigate("UserInfo");
}}
>
<UserIcon size={32} />
<Text style={styles.text_white_medium}>UserInfo</Text>
</DrawerButton>
{/*
Debug buttons for accessing revalidation and activation page
<DrawerButton