From 5a2d111538a0846f7a033abb2cc46db4a163d51f Mon Sep 17 00:00:00 2001 From: gearnode Date: Fri, 28 Mar 2025 00:10:37 +0100 Subject: [PATCH] Remove sub menu Signed-off-by: gearnode --- apps/console/src/components/NavMain.tsx | 35 ++++++++++--------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/apps/console/src/components/NavMain.tsx b/apps/console/src/components/NavMain.tsx index 63d7155ca..12af537c7 100644 --- a/apps/console/src/components/NavMain.tsx +++ b/apps/console/src/components/NavMain.tsx @@ -3,8 +3,7 @@ import { ChevronRight, ClipboardList, - ListCheck, - NotebookTabs, + Shield, type LucideIcon, } from "lucide-react"; import { Link, useLocation, useParams } from "react-router"; @@ -152,6 +151,11 @@ function getNavItems(organizationId?: string): NavItem[] { ? `/organizations/${organizationId}/mitigations` : undefined, }, + { + title: "Risk", + icon: Shield, + url: organizationId ? `/organizations/${organizationId}/risk` : undefined, + }, { title: "Frameworks", url: organizationId @@ -160,25 +164,14 @@ function getNavItems(organizationId?: string): NavItem[] { icon: BookOpen, }, { - title: "Organizations", - icon: Building, - url: organizationId - ? `/organizations/${organizationId}/people` - : undefined, - items: organizationId - ? [ - { - title: "Peoples", - url: `/organizations/${organizationId}/people`, - icon: Users, - }, - { - title: "Vendors", - url: `/organizations/${organizationId}/vendors`, - icon: ToyBrick, - }, - ] - : [], + title: "Peoples", + url: `/organizations/${organizationId}/people`, + icon: Users, + }, + { + title: "Vendors", + url: `/organizations/${organizationId}/vendors`, + icon: ToyBrick, }, { title: "Policies",