fix: Use NextJS recommended config for styled-components

This commit is contained in:
busybox11 committed 2024-08-24 01:43:09 +02:00 Unverified
1 parent 96e64d5759
commit de147a219f
3 files changed
+38 -6

No files matched your search

+3 -2
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>