Skip to content

Commit

Permalink
feat(ui): use theme provider on _app
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 12, 2022
1 parent 7af63db commit da64e89
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react'
import Head from 'next/head'
import { AppProps } from 'next/app'
import { ThemeProvider } from 'next-themes'

import '../styles/main.css'

Expand All @@ -15,7 +16,9 @@ const MyApp: React.FC<AppProps> = ({ Component, pageProps }) => {
src="https://mateusfg7-umami-instance.herokuapp.com/umami.js"
/>
</Head>
<Component {...pageProps} />
<ThemeProvider attribute="class" defaultTheme="light">
<Component {...pageProps} />
</ThemeProvider>
</>
)
}
Expand Down

0 comments on commit da64e89

Please sign in to comment.