Improved user info page

This commit is contained in:
Keannu Bernasol 2023-07-17 15:48:51 +08:00
parent 0a5617ff56
commit df58613d4b
3 changed files with 4 additions and 3 deletions

View file

@ -67,7 +67,7 @@ export default function App() {
<Drawer.Screen name="Onboarding" component={Onboarding} /> <Drawer.Screen name="Onboarding" component={Onboarding} />
<Drawer.Screen name="Revalidation" component={Revalidation} /> <Drawer.Screen name="Revalidation" component={Revalidation} />
<Drawer.Screen name="Activation" component={Activation} /> <Drawer.Screen name="Activation" component={Activation} />
<Drawer.Screen name="UserInfo" component={UserInfo} /> <Drawer.Screen name="User Info" component={UserInfo} />
</Drawer.Navigator> </Drawer.Navigator>
</NavigationContainer> </NavigationContainer>
</QueryClientProvider> </QueryClientProvider>

View file

@ -72,11 +72,11 @@ export default function CustomDrawerContent(props: {}) {
<DrawerButton <DrawerButton
color={colors.blue_2} color={colors.blue_2}
onPress={() => { onPress={() => {
navigation.navigate("UserInfo"); navigation.navigate("User Info");
}} }}
> >
<UserIcon size={32} /> <UserIcon size={32} />
<Text style={styles.text_white_medium}>UserInfo</Text> <Text style={styles.text_white_medium}>User Info</Text>
</DrawerButton> </DrawerButton>
<DrawerButton <DrawerButton
color={colors.blue_2} color={colors.blue_2}

View file

@ -37,6 +37,7 @@ export default function UserInfo() {
}); });
}, },
}); });
const navigation = useNavigation<RootDrawerParamList>(); const navigation = useNavigation<RootDrawerParamList>();
const [isEditable, setIsEditable] = useState(false); const [isEditable, setIsEditable] = useState(false);
const subjectOptions = ["", "", "", ""]; const subjectOptions = ["", "", "", ""];