Export toggle switch to new component file
Refactored for future code maintainability. Also added in default to dark theme and adjusted some styling on the toggle switch.
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ import {ThemeProvider} from 'next-themes'
|
||||
function MyApp({ Component, pageProps }: AppProps) {
|
||||
return (
|
||||
<>
|
||||
<ThemeProvider attribute="class">
|
||||
<ThemeProvider attribute="class" defaultTheme="dark">
|
||||
<Component {...pageProps} />
|
||||
</ThemeProvider>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user