Add cookies and Layout to index page

This commit is contained in:
Justin Edmund 2022-01-31 20:47:34 -08:00
parent fcd544536d
commit 374e19b007

View file

@ -1,9 +1,17 @@
import '../styles/globals.scss'
import type { AppProps } from 'next/app'
import { CookiesProvider } from 'react-cookie'
import Layout from '~components/Layout'
function MyApp({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />
return (
<CookiesProvider>
<Layout>
<Component {...pageProps} />
</Layout>
</CookiesProvider>
)
}
export default MyApp