Navbar Client- Added - Testing
This commit is contained in:
parent
7c1d8fa619
commit
f343485abb
@ -3,8 +3,9 @@ import { Playfair_Display, DM_Sans } from "next/font/google";
|
||||
import "./globals.css";
|
||||
import ScrollToTop from "@/components/ScrollToTop/ScrollToTop";
|
||||
// import Navbar from '@/components/Navbar/Navbar';
|
||||
import NavbarWrapper from "@/components/NavbarWrapper";
|
||||
// import NavbarWrapper from "@/components/NavbarWrapper";
|
||||
import Script from "next/script";
|
||||
import NavbarClient from "@/components/NavbarClient";
|
||||
|
||||
const playfairDisplay = Playfair_Display({
|
||||
subsets: ["latin"],
|
||||
@ -152,7 +153,8 @@ export default function RootLayout({
|
||||
}}
|
||||
/>
|
||||
|
||||
<NavbarWrapper />
|
||||
{/* <NavbarWrapper /> */}
|
||||
<NavbarClient />
|
||||
{children}
|
||||
<ScrollToTop />
|
||||
</body>
|
||||
|
||||
11
src/components/NavbarClient.tsx
Normal file
11
src/components/NavbarClient.tsx
Normal file
@ -0,0 +1,11 @@
|
||||
"use client";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Navbar = dynamic(() => import("@/components/Navbar/Navbar"), {
|
||||
ssr: false,
|
||||
});
|
||||
|
||||
export default function NavbarClient() {
|
||||
return <Navbar />;
|
||||
}
|
||||
@ -1,6 +0,0 @@
|
||||
"use client";
|
||||
import Navbar from "./Navbar/Navbar";
|
||||
|
||||
export default function NavbarWrapper() {
|
||||
return <Navbar />;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user