From 00c17225361f1f4e61c2a54aa7eb2ed0a88cb610 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 18 Oct 2025 01:47:23 +0000 Subject: [PATCH] Allow hiding footer via Layout prop and apply to home page cgen-93405e41ce9e42288fc385b774f7b7df --- client/components/Layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 7f1d5b49..fe014f91 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -32,9 +32,10 @@ import { interface LayoutProps { children: React.ReactNode; + hideFooter?: boolean; } -export default function CodeLayout({ children }: LayoutProps) { +export default function CodeLayout({ children, hideFooter }: LayoutProps) { const location = useLocation(); const { user, profile, roles, signOut, loading, profileComplete } = useAuth(); const isOwner = Array.isArray(roles) && roles.includes("owner"); @@ -371,6 +372,7 @@ export default function CodeLayout({ children }: LayoutProps) {
{children}
+ {!hideFooter && ( + )} {/* Supabase Configuration Status */}