Update layout.tsx

This commit is contained in:
MacRimi 2025-02-13 22:13:38 +01:00 committed by GitHub
parent 83b9073faf
commit 3d29740857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
import "./globals.css"
import { Inter } from "next/font/google"
import type { Metadata } from "next"
import ClientLayout from "@/components/ClientLayout" // ✅ Import ClientLayout (Recommended)
import ClientLayout from "@/components/ClientLayout"
const inter = Inter({ subsets: ["latin"] })
@ -12,18 +12,13 @@ export const metadata: Metadata = {
generator: "v0.dev",
}
export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
export default function RootLayout({ children }: { children: React.ReactNode }) {
return (
<html lang="en" className="dark">
<body className={`${inter.className} bg-background text-foreground antialiased`}>
<ClientLayout> {/* ✅ Now using ClientLayout */}
{children}
</ClientLayout>
<ClientLayout>{children}</ClientLayout>
</body>
</html>
)
}