File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import localFont from 'next/font/local';
2727import './globals.css' ;
2828import { NextFontWithVariable } from 'next/dist/compiled/@next/font' ;
2929import { ReactElement } from 'react' ;
30+ import ThemeProvider from '@/components/ThemeProvider' ;
3031
3132const geistSans : NextFontWithVariable = localFont ( {
3233 src : './fonts/GeistVF.woff' ,
@@ -49,7 +50,11 @@ const RootLayout = ({
4950 children : React . ReactNode ;
5051} > ) : ReactElement => (
5152 < html lang = "en" >
52- < body className = { `${ geistSans . variable } ${ geistMono . variable } ` } > { children } </ body >
53+ < body className = { `${ geistSans . variable } ${ geistMono . variable } ` } >
54+ < ThemeProvider attribute = "class" defaultTheme = "system" enableSystem disableTransitionOnChange >
55+ { children }
56+ </ ThemeProvider >
57+ </ body >
5358 </ html >
5459) ;
5560
You can’t perform that action at this time.
0 commit comments