fix: disable transitions on theme change

This commit is contained in:
Dorian Niemiec 2024-11-06 16:42:54 +01:00
parent e041603aaa
commit 7cd8286780

View file

@ -43,7 +43,11 @@ export default function RootLayout({ children }) {
return ( return (
<html lang="en" suppressHydrationWarning> <html lang="en" suppressHydrationWarning>
<body className={`antialiased ${inter.className}`}> <body className={`antialiased ${inter.className}`}>
<ThemeProvider attribute="class" enableSystem={true}> <ThemeProvider
attribute="class"
enableSystem={true}
disableTransitionOnChange={true}
>
{children} {children}
</ThemeProvider> </ThemeProvider>
</body> </body>