From 39f88fe54edc1011e99782aa40774b8f4a492586 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 27 Sep 2025 23:49:35 +0000 Subject: [PATCH] Move Admin link from top bar to user menu cgen-de2149cca22b49f6840bf439f61bda13 --- client/components/Layout.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index a072df8c..38c8db7b 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -20,6 +20,7 @@ interface LayoutProps { export default function Layout({ children }: LayoutProps) { const location = useLocation(); const { user, profile, roles, signOut, loading } = useAuth(); + const isOwner = Array.isArray(roles) && roles.includes("owner"); const navigation = [ { name: "Home", href: "/" }, @@ -61,12 +62,7 @@ export default function Layout({ children }: LayoutProps) { {/* Navigation */}