File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1+ "use client" ;
2+
3+ export { default as CustomLink } from "next/link" ;
4+
5+ // Refer - https://github.com/vercel/next.js/issues/85604
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ import { Core } from "nextjs-darkmode-lite";
44import { Layout } from "@repo/shared/dist/server" ;
55import { GlobalLoader , Header } from "@repo/shared" ;
66import { Inter } from "next/font/google" ;
7- import Link from "next/link" ;
87import { Particles } from "webgl-generative-particles/react" ;
98import { ReactNode } from "react" ;
9+ import { CustomLink } from "./custom-link" ;
1010
1111const inter = Inter ( { subsets : [ "latin" ] } ) ;
1212
@@ -17,7 +17,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }):
1717 < body className = { inter . className } >
1818 < Core />
1919 < Layout >
20- < Header linkComponent = { Link } />
20+ < Header linkComponent = { CustomLink } />
2121 { children }
2222 </ Layout >
2323 < GlobalLoader />
You can’t perform that action at this time.
0 commit comments