From ec57996b0154edda7a1f2ee732877de8591cd8cf Mon Sep 17 00:00:00 2001 From: Owen Date: Mon, 14 Jul 2025 14:56:03 -0700 Subject: [PATCH] Hide license --- src/app/navigation.tsx | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/src/app/navigation.tsx b/src/app/navigation.tsx index 021cfdf8..a18659f2 100644 --- a/src/app/navigation.tsx +++ b/src/app/navigation.tsx @@ -1,4 +1,5 @@ import { SidebarNavItem } from "@app/components/SidebarNav"; +import { build } from "@server/build"; import { Home, Settings, @@ -20,7 +21,9 @@ export type SidebarNavSection = { items: SidebarNavItem[]; }; -export const orgNavSections = (enableClients: boolean = true): SidebarNavSection[] => [ +export const orgNavSections = ( + enableClients: boolean = true +): SidebarNavSection[] => [ { heading: "General", items: [ @@ -34,16 +37,20 @@ export const orgNavSections = (enableClients: boolean = true): SidebarNavSection href: "/{orgId}/settings/resources", icon: }, - ...(enableClients ? [{ - title: "sidebarClients", - href: "/{orgId}/settings/clients", - icon: - }] : []), + ...(enableClients + ? [ + { + title: "sidebarClients", + href: "/{orgId}/settings/clients", + icon: + } + ] + : []), { title: "sidebarDomains", href: "/{orgId}/settings/domains", icon: - }, + } ] }, { @@ -107,11 +114,15 @@ export const adminNavSections: SidebarNavSection[] = [ href: "/admin/idp", icon: }, - { - title: "sidebarLicense", - href: "/admin/license", - icon: - } + ...(build == "enterprise" + ? [ + { + title: "sidebarLicense", + href: "/admin/license", + icon: + } + ] + : []) ] } ];