refactor: imp some components

This commit is contained in:
Daniel Soares
2021-12-12 23:45:41 -03:00
parent 47bd52ffd7
commit 7b7e6b9cbd
13 changed files with 217 additions and 143 deletions

View File

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