From 60abebabbc267055bf8e0fdd44a3bab9e56ec8e8 Mon Sep 17 00:00:00 2001 From: Matt Aitken Date: Thu, 16 May 2024 15:31:24 +0100 Subject: [PATCH] Only show the alerts sidemenu item if the feature is enabled --- .../app/components/navigation/SideMenu.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/apps/webapp/app/components/navigation/SideMenu.tsx b/apps/webapp/app/components/navigation/SideMenu.tsx index 745e06b70..3159b848a 100644 --- a/apps/webapp/app/components/navigation/SideMenu.tsx +++ b/apps/webapp/app/components/navigation/SideMenu.tsx @@ -542,6 +542,8 @@ function V3ProjectSideMenu({ project: SideMenuProject; organization: MatchedOrganization; }) { + const { alertsEnabled } = useFeatures(); + return ( <> @@ -594,13 +596,15 @@ function V3ProjectSideMenu({ to={v3DeploymentsPath(organization, project)} data-action="deployments" /> - + {alertsEnabled && ( + + )}