fix: conditionally render OfflineBanner and adjust main padding based on user authentication and online status

This commit is contained in:
Usman Baig
2026-02-04 11:32:14 +01:00
parent 8bc05382d8
commit 223c00a382
2 changed files with 3 additions and 3 deletions

View File

@@ -55,9 +55,9 @@ export default function LayoutContent({ children }: { children: React.ReactNode
showFaq={false}
showSecurity={false}
showPricing={true}
bottomContent={<OfflineBanner />}
bottomContent={auth.user ? <OfflineBanner /> : undefined}
/>
<main className={`flex-1 pb-8 ${isOnline ? 'pt-24' : 'pt-32'}`}>
<main className={`flex-1 pb-8 ${auth.user && !isOnline ? 'pt-32' : 'pt-24'}`}>
{children}
</main>
<Footer