refactor: with styled-components

This commit is contained in:
Daniel Soares
2021-12-18 00:50:54 -03:00
parent 5138b4dfc2
commit 47d03b6d73
42 changed files with 845 additions and 934 deletions

View File

@@ -1,13 +1,14 @@
import type { AppProps } from 'next/app'
import { DataProvider } from '../contexts/DataContext'
import { globalStyles } from '../styles/globals'
import { Layout } from '../styles/layout'
export default function App({ Component, pageProps }: AppProps) {
globalStyles()
return (
<DataProvider>
<Component {...pageProps} />
<DataProvider initialData={pageProps.initialData}>
<Layout>
<Component {...pageProps} />
</Layout>
</DataProvider>
)
}