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 { authOptions } from "./api/auth/[...nextauth]/route";
|
||||
import { redirect } from "next/navigation";
|
||||
import { Providers } from "@/components/providers";
|
||||
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({
|
||||
children,
|
||||
@ -27,22 +18,11 @@ export default async function RootLayout({
|
||||
return (
|
||||
<html lang="fr" suppressHydrationWarning>
|
||||
<body>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
defaultTheme="dark"
|
||||
enableSystem
|
||||
disableTransitionOnChange
|
||||
>
|
||||
<Providers>
|
||||
<LayoutWrapper>
|
||||
<div className="min-h-screen bg-black">
|
||||
<Navbar />
|
||||
{children}
|
||||
</div>
|
||||
<Toaster />
|
||||
</LayoutWrapper>
|
||||
</Providers>
|
||||
</ThemeProvider>
|
||||
<Providers>
|
||||
<LayoutWrapper>
|
||||
{children}
|
||||
</LayoutWrapper>
|
||||
</Providers>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user