From cbd3c38f38024b84915ca4da7ebf159ffc3d45f3 Mon Sep 17 00:00:00 2001 From: Usman Baig Date: Wed, 4 Feb 2026 11:17:18 +0100 Subject: [PATCH] chore: update @ciphera-net/ui dependency to version 0.0.40 in package.json and package-lock.json; add useOnlineStatus hook to LayoutContent for dynamic padding adjustment --- app/layout-content.tsx | 8 ++++---- components/OfflineBanner.tsx | 2 +- package-lock.json | 9 +++++---- package.json | 2 +- 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/app/layout-content.tsx b/app/layout-content.tsx index 29b83c7..0175a44 100644 --- a/app/layout-content.tsx +++ b/app/layout-content.tsx @@ -3,6 +3,7 @@ import { OfflineBanner } from '@/components/OfflineBanner' import { Header, Footer } from '@ciphera-net/ui' import { useAuth } from '@/lib/auth/context' +import { useOnlineStatus } from '@/lib/hooks/useOnlineStatus' import Link from 'next/link' import { useEffect, useState } from 'react' import { getUserOrganizations, switchContext } from '@/lib/api/organization' @@ -12,6 +13,7 @@ import { useRouter } from 'next/navigation' export default function LayoutContent({ children }: { children: React.ReactNode }) { const auth = useAuth() const router = useRouter() + const isOnline = useOnlineStatus() const [orgs, setOrgs] = useState([]) // * Fetch organizations for the header workspace switcher @@ -53,11 +55,9 @@ export default function LayoutContent({ children }: { children: React.ReactNode showFaq={false} showSecurity={false} showPricing={true} + bottomContent={} /> -
- -
-
+
{children}