refactor: enhance OfflineBanner to accept online status as a prop and update layout-content to pass isOnline state

This commit is contained in:
Usman Baig
2026-02-04 12:34:24 +01:00
parent 44b3cf3fb5
commit 4d477110c8
6 changed files with 8 additions and 12 deletions

View File

@@ -45,7 +45,7 @@ export default function LayoutContent({ children }: { children: React.ReactNode
return (
<>
{auth.user && <OfflineBanner />}
{auth.user && <OfflineBanner isOnline={isOnline} />}
<Header
auth={auth}
LinkComponent={Link}