Skip to content

Commit

Permalink
chore(mobile): Covers /my settings related routes
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenjohnson committed Jan 22, 2025
1 parent 35e1298 commit d074bab
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
19 changes: 13 additions & 6 deletions apps/mobile/src/navigation/UserSettingsTabsNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,42 +85,49 @@ export default function UserSettingsTabsNavigator ({ navigation, route }) {
name='Edit Profile'
component={UserSettingsWebView}
initialParams={{
path: '/settings'
path: '/my/edit-profile'
}}
/>
<UserSettings.Screen
name='Afflilations'
component={UserSettingsWebView}
initialParams={{
path: '/settings/groups'
path: '/my/groups'
}}
/>
<UserSettings.Screen
name='Invites &amp; Requests'
component={UserSettingsWebView}
initialParams={{
path: '/settings/invitations'
path: '/my/invitations'
}}
/>
<UserSettings.Screen
name='Notifications'
component={UserSettingsWebView}
initialParams={{
path: '/settings/notifications'
path: '/my/notifications'
}}
/>
<UserSettings.Screen
name='Locale'
component={UserSettingsWebView}
initialParams={{
path: '/my/locale'
}}
/>
<UserSettings.Screen
name='Account'
component={UserSettingsWebView}
initialParams={{
path: '/settings/account'
path: '/my/account'
}}
/>
<UserSettings.Screen
name='Saved Searches'
component={UserSettingsWebView}
initialParams={{
path: '/settings/saved-searches'
path: '/my/saved-searches'
}}
/>
<UserSettings.Screen
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/src/navigation/linking/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const routingConfig = {
'/:context(groups)/:groupSlug/post/:id/edit': `${AUTH_ROOT_SCREEN_NAME}/Edit Post`,

// /settings
'/settings': `${AUTH_ROOT_SCREEN_NAME}/Drawer/Tabs/Settings Tab/Edit Profile`,
'/my': `${AUTH_ROOT_SCREEN_NAME}/Drawer/Tabs/Settings Tab/Edit Profile`,
'/settings/account': `${AUTH_ROOT_SCREEN_NAME}/Drawer/Tabs/Settings Tab/Account`,
'/settings/notifications': `${AUTH_ROOT_SCREEN_NAME}/Drawer/Tabs/Settings Tab/Notifications`,
'/settings/blocked-users': `${AUTH_ROOT_SCREEN_NAME}/Drawer/Tabs/Settings Tab/Blocked Users`,
Expand Down

0 comments on commit d074bab

Please sign in to comment.