fix: add suppressHydrationWarning to body for Dark Reader compatibility

This commit is contained in:
ashim-hq
2026-04-23 18:29:48 +08:00
parent 8f6600f55e
commit 0c40c4dcfc
+4 -1
View File
@@ -37,7 +37,10 @@ export const metadata: Metadata = {
export default function RootLayout({ children }: { children: React.ReactNode }) { export default function RootLayout({ children }: { children: React.ReactNode }) {
return ( return (
<html lang="en" className={inter.variable} suppressHydrationWarning> <html lang="en" className={inter.variable} suppressHydrationWarning>
<body className="bg-background text-foreground font-[family-name:var(--font-inter)] antialiased"> <body
className="bg-background text-foreground font-[family-name:var(--font-inter)] antialiased"
suppressHydrationWarning
>
{children} {children}
</body> </body>
</html> </html>