diff --git a/examples/nextjs/src/app/layout.tsx b/examples/nextjs/src/app/layout.tsx index 2137b73d..685827c9 100644 --- a/examples/nextjs/src/app/layout.tsx +++ b/examples/nextjs/src/app/layout.tsx @@ -4,6 +4,7 @@ import { Core } from "nextjs-darkmode"; import { Layout } from "@repo/shared/dist/server"; import { GlobalLoader, Header } from "@repo/shared"; import { Inter } from "next/font/google"; +import Link from "next/link"; const inter = Inter({ subsets: ["latin"] }); @@ -14,7 +15,7 @@ export default function RootLayout({ children }: { children: React.ReactNode }): -
+
{children} diff --git a/packages/shared/src/client/header/header.tsx b/packages/shared/src/client/header/header.tsx index 2c5ab43a..7ee75a52 100644 --- a/packages/shared/src/client/header/header.tsx +++ b/packages/shared/src/client/header/header.tsx @@ -2,7 +2,7 @@ import { useState } from "react"; import styles from "./header.module.scss"; import ThemeSwitch from "./theme-switch"; import { DrawerButton } from "../drawer-button"; -import { Logo } from "../../server"; +import { Logo, LogoProps } from "../../server"; /** * # Header @@ -11,13 +11,13 @@ import { Logo } from "../../server"; * This could be a server component with leaf nodes being client components. * However, we want to reuse as much code as possible across different examples and also optimize for the best use of bleading edge features. */ -export function Header() { +export function Header(logoProps: LogoProps) { const [open, setOpen] = useState(false); return (
- +