Skip to content

Commit

Permalink
update and add missing link attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardoj committed Feb 8, 2024
1 parent 9f37d3e commit fce3cac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/home/sidebar/AllSettingsScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function AllSettingsScreen({policies, policyMembers}: AllSettingsScreenProps) {
},
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
link: CONST.OLDDOT_URLS.ADMIN_POLICIES_URL,
link: () => Link.buildOldDotURL(CONST.OLDDOT_URLS.ADMIN_POLICIES_URL),
},
]
: []),
Expand All @@ -72,13 +72,14 @@ function AllSettingsScreen({policies, policyMembers}: AllSettingsScreenProps) {
},
shouldShowRightIcon: true,
iconRight: Expensicons.NewWindow,
link: CONST.OLDDOT_URLS.ADMIN_DOMAINS_URL,
link: () => Link.buildOldDotURL(CONST.OLDDOT_URLS.ADMIN_DOMAINS_URL),
},
];
return baseMenuItems.map((item) => ({
key: item.translationKey,
title: translate(item.translationKey as TranslationPaths),
icon: item.icon,
link: item.link,
iconRight: item.iconRight,
onPress: item.action,
shouldShowRightIcon: item.shouldShowRightIcon,
Expand Down

0 comments on commit fce3cac

Please sign in to comment.