move navbar to global layout

This commit is contained in:
sirin 2024-08-29 10:22:40 +07:00
parent 25c5c08df8
commit 6cec1f36bc
2 changed files with 7 additions and 7 deletions

View File

@ -1,11 +1,7 @@
"use client"; "use client";
import React from "react"; import React from "react";
import { UnsignedNav } from "@/components/navigationBar/unSigned";
export default function Page() { export default function Page() {
return ( return <div>hello</div>;
<div>
<UnsignedNav />
</div>
);
} }

View File

@ -3,6 +3,8 @@ import { Montserrat } from "next/font/google";
import { ThemeProvider } from "@/components/theme-provider"; import { ThemeProvider } from "@/components/theme-provider";
import "@/app/globals.css"; import "@/app/globals.css";
import { UnsignedNav } from "@/components/navigationBar/unSigned";
const montserrat = Montserrat({ const montserrat = Montserrat({
subsets: ["latin"], subsets: ["latin"],
display: "swap", display: "swap",
@ -23,10 +25,12 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) { export default function RootLayout({ children }: RootLayoutProps) {
return ( return (
<html lang="en"> <html lang="en">
<head />
<body className={`${montserrat.className}`}> <body className={`${montserrat.className}`}>
<ThemeProvider attribute="class" defaultTheme="system" enableSystem> <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
<div className="relative flex min-h-screen flex-col"> <div className="relative flex min-h-screen flex-col">
<div className="flex-1">{children}</div> <UnsignedNav />
<div className="flex-1 bg-background">{children}</div>
</div> </div>
</ThemeProvider> </ThemeProvider>
</body> </body>