Merge pull request #68 from busybox11/fix-styled-components-nextjs

fix: Use NextJS recommended config for styled-components
This commit is contained in:
mauro 🤙
2024-08-24 15:05:43 +02:00
committed by GitHub
3 changed files with 38 additions and 6 deletions

View File

@@ -1,7 +1,8 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { ThemeProvider } from "@/components/theme-provider"
import { ThemeProvider } from "@/components/theme-provider";
import StyledComponentsRegistry from "@/lib/styled-components-registry";
const inter = Inter({ subsets: ["latin"] });
@@ -25,7 +26,7 @@ export default function RootLayout({
enableSystem
disableTransitionOnChange
>
{children}
<StyledComponentsRegistry>{children}</StyledComponentsRegistry>
</ThemeProvider>
</body>
</html>