From fce3cac6d6e61fc548039ddd29e9ce32480dc7c7 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Thu, 8 Feb 2024 14:17:56 +0800 Subject: [PATCH] update and add missing link attribute --- src/pages/home/sidebar/AllSettingsScreen.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/home/sidebar/AllSettingsScreen.tsx b/src/pages/home/sidebar/AllSettingsScreen.tsx index 3f6d0ab6a318..a9e284329421 100644 --- a/src/pages/home/sidebar/AllSettingsScreen.tsx +++ b/src/pages/home/sidebar/AllSettingsScreen.tsx @@ -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), }, ] : []), @@ -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,