From 05910ba4ae2af64c4242506b23b42ef7c615d1fd Mon Sep 17 00:00:00 2001 From: "MSI\\derek" Date: Thu, 29 Aug 2024 16:29:46 +0800 Subject: [PATCH] update nav bar: financial summary /w auth --- src/components/NavigationContent/NavigationContent.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/NavigationContent/NavigationContent.tsx b/src/components/NavigationContent/NavigationContent.tsx index 72df45d..8084eac 100644 --- a/src/components/NavigationContent/NavigationContent.tsx +++ b/src/components/NavigationContent/NavigationContent.tsx @@ -166,6 +166,9 @@ const NavigationContent: React.FC = ({ abilities, username }) => { icon: , label: "Financial Summary", path: "/dashboard/ProjectFinancialSummary", + isHidden: ![VIEW_DASHBOARD_ALL, VIEW_DASHBOARD_SELF].some((ability) => + abilities!.includes(ability), + ), showOnMobile: true, }, // No Claim function in Breaur, will be implement later