Nav Bar correction
This commit is contained in:
parent
be6b47fc80
commit
7ab391ffd3
@ -1,17 +1,8 @@
|
|||||||
import type { Metadata } from "next";
|
|
||||||
import { Inter } from "next/font/google";
|
|
||||||
import "./globals.css";
|
|
||||||
import { headers } from "next/headers";
|
|
||||||
import { getServerSession } from "next-auth";
|
import { getServerSession } from "next-auth";
|
||||||
import { authOptions } from "./api/auth/[...nextauth]/route";
|
import { authOptions } from "./api/auth/[...nextauth]/route";
|
||||||
|
import { redirect } from "next/navigation";
|
||||||
import { Providers } from "@/components/providers";
|
import { Providers } from "@/components/providers";
|
||||||
import { LayoutWrapper } from "@/components/layout/layout-wrapper";
|
import { LayoutWrapper } from "@/components/layout/layout-wrapper";
|
||||||
import { Navbar } from "@/components/navbar";
|
|
||||||
import { ThemeProvider } from "@/components/theme-provider";
|
|
||||||
import { Toaster } from "@/components/ui/toaster";
|
|
||||||
import { redirect } from "next/navigation";
|
|
||||||
|
|
||||||
const inter = Inter({ subsets: ["latin"] });
|
|
||||||
|
|
||||||
export default async function RootLayout({
|
export default async function RootLayout({
|
||||||
children,
|
children,
|
||||||
@ -27,22 +18,11 @@ export default async function RootLayout({
|
|||||||
return (
|
return (
|
||||||
<html lang="fr" suppressHydrationWarning>
|
<html lang="fr" suppressHydrationWarning>
|
||||||
<body>
|
<body>
|
||||||
<ThemeProvider
|
<Providers>
|
||||||
attribute="class"
|
<LayoutWrapper>
|
||||||
defaultTheme="dark"
|
{children}
|
||||||
enableSystem
|
</LayoutWrapper>
|
||||||
disableTransitionOnChange
|
</Providers>
|
||||||
>
|
|
||||||
<Providers>
|
|
||||||
<LayoutWrapper>
|
|
||||||
<div className="min-h-screen bg-black">
|
|
||||||
<Navbar />
|
|
||||||
{children}
|
|
||||||
</div>
|
|
||||||
<Toaster />
|
|
||||||
</LayoutWrapper>
|
|
||||||
</Providers>
|
|
||||||
</ThemeProvider>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user