Skip to content

Commit 9a48c54

Browse files
committed
Fix broken links in account settings
1 parent 748dd50 commit 9a48c54

File tree

11 files changed

+198
-188
lines changed

11 files changed

+198
-188
lines changed

packages/mobile-app/app/(drawer)/account/_layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ export default function Layout() {
3737
<Stack.Screen
3838
name="index"
3939
options={{
40-
headerTitle: () => (
40+
title: "Loading...",
41+
headerTitle: (props) => (
4142
<TouchableWithoutFeedback
4243
onPress={() => {
4344
router.push("/(drawer)/account/account-select");
@@ -46,7 +47,7 @@ export default function Layout() {
4647
<View
4748
style={{ flexDirection: "row", alignItems: "center", gap: 4 }}
4849
>
49-
<Text category="h6">Testing</Text>
50+
<Text category="h6">{props.children}</Text>
5051
<Icon
5152
name="chevron-down-outline"
5253
fill={theme["text-basic-color"]}

packages/mobile-app/app/(drawer)/account/account-settings/index.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,23 @@ const ForwardIcon = (props: any): IconElement => (
2424
const ACCOUNT_SETTINGS_ROUTES = {
2525
accountSelect: {
2626
title: "Account Select",
27-
href: "account-select",
27+
href: "/(drawer)/account/account-settings/account-select",
2828
},
2929
accountName: {
3030
title: "Account Name",
31-
href: "account-settings/account-name",
31+
href: "/(drawer)/account/account-settings/account-name",
3232
},
3333
exportAccount: {
3434
title: "Export Account",
35-
href: "account-settings/export-account",
35+
href: "/(drawer)/account/account-settings/export-account",
3636
},
3737
removeAccount: {
3838
title: "Remove Account",
39-
href: "account-settings/remove-account",
39+
href: "/(drawer)/account/account-settings/remove-account",
4040
},
4141
addAccount: {
4242
title: "Add Account",
43-
href: "add-account",
43+
href: "/(drawer)/account/account-settings/add-account",
4444
},
4545
} as const;
4646

@@ -114,7 +114,7 @@ function AccountSettingsContent({ accountName }: { accountName: string }) {
114114

115115
return (
116116
<>
117-
<Stack.Screen options={{ title: accountName }} />
117+
<Stack.Screen options={{ title: "Account Settings" }} />
118118
<Layout style={styles.container} level="1">
119119
<Menu style={styles.menu}>
120120
{menuItems

0 commit comments

Comments
 (0)