diff --git a/app/layout-content.tsx b/app/layout-content.tsx index 1a31c0f..b42b9ab 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -40,8 +40,12 @@ export default function LayoutContent({ children }: { children: React.ReactNode router.push('/onboarding') } + const showOfflineBar = Boolean(auth.user && !isOnline); + const barHeightRem = '2.5rem'; + return ( <> + {auth.user && }
: undefined} + topOffset={showOfflineBar ? barHeightRem : undefined} /> -
+
{children}