Add cookies and Layout to index page
This commit is contained in:
parent
fcd544536d
commit
374e19b007
1 changed files with 9 additions and 1 deletions
|
|
@ -1,9 +1,17 @@
|
||||||
import '../styles/globals.scss'
|
import '../styles/globals.scss'
|
||||||
|
|
||||||
import type { AppProps } from 'next/app'
|
import type { AppProps } from 'next/app'
|
||||||
|
import { CookiesProvider } from 'react-cookie'
|
||||||
|
import Layout from '~components/Layout'
|
||||||
|
|
||||||
function MyApp({ Component, pageProps }: AppProps) {
|
function MyApp({ Component, pageProps }: AppProps) {
|
||||||
return <Component {...pageProps} />
|
return (
|
||||||
|
<CookiesProvider>
|
||||||
|
<Layout>
|
||||||
|
<Component {...pageProps} />
|
||||||
|
</Layout>
|
||||||
|
</CookiesProvider>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export default MyApp
|
export default MyApp
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue