mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 08:46:22 +02:00
- Introduced GlobalLoadingProvider to manage a consistent loading overlay across the application. - Replaced existing loading implementations with useGlobalLoadingEffect hook for better control and to prevent animation resets. - Updated components such as LoginPage, AuthCallbackPage, and DashboardLayout to utilize the new global loading mechanism. - Removed UnifiedLoadingScreen component to streamline loading management and enhance user experience.
18 lines
614 B
TypeScript
18 lines
614 B
TypeScript
"use client";
|
|
|
|
import { usePathname } from "next/navigation";
|
|
import { FooterNew } from "@/components/homepage/footer-new";
|
|
import { Navbar } from "@/components/homepage/navbar";
|
|
|
|
export default function HomePageLayout({ children }: { children: React.ReactNode }) {
|
|
const pathname = usePathname();
|
|
const isAuthPage = pathname === "/login" || pathname === "/register";
|
|
|
|
return (
|
|
<main className="min-h-screen bg-linear-to-b from-gray-50 to-gray-100 text-gray-900 dark:from-black dark:to-gray-900 dark:text-white overflow-x-hidden">
|
|
<Navbar />
|
|
{children}
|
|
{!isAuthPage && <FooterNew />}
|
|
</main>
|
|
);
|
|
}
|