diff --git a/ui/src/components/Layout.tsx b/ui/src/components/Layout.tsx index 0df6c6d..097cdb8 100644 --- a/ui/src/components/Layout.tsx +++ b/ui/src/components/Layout.tsx @@ -4,7 +4,7 @@ import { Sidebar, TopBar, } from '@cameleer/design-system'; -import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, Fingerprint, ScrollText } from 'lucide-react'; +import { LayoutDashboard, ShieldCheck, Server, Users, Settings, Shield, Building, ScrollText } from 'lucide-react'; import { useAuth } from '../auth/useAuth'; import { useScopes } from '../auth/useScopes'; import { useOrgStore } from '../auth/useOrganization'; @@ -87,7 +87,6 @@ export function Layout() { style={{ padding: '6px 12px 6px 36px', fontSize: 13, cursor: 'pointer', color: 'var(--text-muted)' }} onClick={() => window.open(`${window.location.protocol}//${window.location.hostname}:3002`, '_blank', 'noopener')} > - Identity (Logto) @@ -158,13 +157,15 @@ export function Layout() { )} - - } - label="Open Server Dashboard" - onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')} - /> - + {showTenantPortal && ( + + } + label="Open Server Dashboard" + onClick={() => window.open(serverDashboardHref, '_blank', 'noopener')} + /> + + )} );