Merge pull request #267 from henry97113/main

Fix screen flashes when the page loads in dark theme
This commit is contained in:
mr. m 🤙 2024-10-22 00:34:45 +03:00 committed by GitHub
commit fdab3ff426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,6 +5,7 @@ import { ThemeProvider } from "@/components/theme-provider";
import StyledComponentsRegistry from "@/lib/styled-components-registry"; import StyledComponentsRegistry from "@/lib/styled-components-registry";
import Footer from "@/components/footer"; import Footer from "@/components/footer";
import { Navigation } from "@/components/navigation"; import { Navigation } from "@/components/navigation";
import { ny } from "@/lib/utils";
const inter = Inter({ subsets: ["latin"] }); const inter = Inter({ subsets: ["latin"] });
@ -54,7 +55,7 @@ export default async function RootLayout({
href="https://www.zen-browser.app/feed.xml" href="https://www.zen-browser.app/feed.xml"
/> />
</head> </head>
<body className={inter.className}> <body className={ny("bg-background", inter.className)}>
<ThemeProvider <ThemeProvider
attribute="class" attribute="class"
defaultTheme="system" defaultTheme="system"