mirror of
https://github.com/lemeow125/StudE-Frontend.git
synced 2024-11-17 06:19:25 +08:00
Improved user info page
This commit is contained in:
parent
0a5617ff56
commit
df58613d4b
3 changed files with 4 additions and 3 deletions
2
App.tsx
2
App.tsx
|
@ -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>
|
||||||
|
|
|
@ -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}
|
||||||
|
|
|
@ -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 = ["", "", "", ""];
|
||||||
|
|
Loading…
Reference in a new issue