Skip to content

Commit

Permalink
a new route and menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragsalian committed Oct 12, 2022
1 parent 06b816f commit 65ffc10
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/ROUTES.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default {
SETTINGS: 'settings',
SETTINGS_PROFILE: 'settings/profile',
SETTINGS_PREFERENCES: 'settings/preferences',
SETTINGS_WORKSPACES: 'settings/workspaces',
SETTINGS_SECURITY: 'settings/security',
SETTINGS_CLOSE: 'settings/security/closeAccount',
SETTINGS_PASSWORD: 'settings/security/password',
Expand Down
5 changes: 5 additions & 0 deletions src/pages/settings/InitialSettingsPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ class InitialSettingsPage extends React.Component {
*/
getDefaultMenuItems() {
return ([
{
translationKey: 'common.workspaces',
icon: Expensicons.Profile,
action: () => { Navigation.navigate(ROUTES.SETTINGS_WORKSPACES); },
},
{
translationKey: 'common.profile',
icon: Expensicons.Profile,
Expand Down

0 comments on commit 65ffc10

Please sign in to comment.