fix: disable transitions on theme change
This commit is contained in:
parent
e041603aaa
commit
7cd8286780
1 changed files with 5 additions and 1 deletions
|
@ -43,7 +43,11 @@ export default function RootLayout({ children }) {
|
|||
return (
|
||||
<html lang="en" suppressHydrationWarning>
|
||||
<body className={`antialiased ${inter.className}`}>
|
||||
<ThemeProvider attribute="class" enableSystem={true}>
|
||||
<ThemeProvider
|
||||
attribute="class"
|
||||
enableSystem={true}
|
||||
disableTransitionOnChange={true}
|
||||
>
|
||||
{children}
|
||||
</ThemeProvider>
|
||||
</body>
|
||||
|
|
Loading…
Reference in a new issue