diff --git a/src/app/LauncherApp.tsx b/src/app/LauncherApp.tsx index 3938eeb..d8d6788 100644 --- a/src/app/LauncherApp.tsx +++ b/src/app/LauncherApp.tsx @@ -487,7 +487,7 @@ export function LauncherApp() { adminOpen={adminOpen} onProfileChange={handleProfileChange} onClientChange={setActiveClientId} - onOpenAdmin={() => setAdminOpen(true)} + onToggleAdmin={() => setAdminOpen((current) => !current)} onOpenShowcase={() => setAdminOpen(false)} /> diff --git a/src/widgets/top-bar/TopBar.tsx b/src/widgets/top-bar/TopBar.tsx index d14f137..9f83fd8 100644 --- a/src/widgets/top-bar/TopBar.tsx +++ b/src/widgets/top-bar/TopBar.tsx @@ -13,7 +13,7 @@ export function TopBar({ adminOpen, onProfileChange, onClientChange, - onOpenAdmin, + onToggleAdmin, onOpenShowcase, }: { me: MeResponse; @@ -24,7 +24,7 @@ export function TopBar({ adminOpen: boolean; onProfileChange: (userId: string) => void; onClientChange: (clientId: string) => void; - onOpenAdmin: () => void; + onToggleAdmin: () => void; onOpenShowcase: () => void; }) { const availableClientIds = new Set(me.memberships.map((membership) => membership.clientId)); @@ -102,7 +102,7 @@ export function TopBar({ /> {me.permissions.canOpenAdmin ? ( - ) : null}