2021-06-21 16:12:57 +02:00
|
|
|
import '../styles/globals.css'
|
|
|
|
import Navbar from '../components/Navbar'
|
|
|
|
import Head from 'next/head'
|
|
|
|
import { Provider } from 'next-auth/client'
|
2021-06-27 12:44:22 +02:00
|
|
|
import { ChakraProvider } from "@chakra-ui/react"
|
|
|
|
import Header from '../components/Nav/Header'
|
|
|
|
import theme from '../chakra_config/theme'
|
|
|
|
import { ColorModeScript } from "@chakra-ui/react"
|
2021-06-21 16:12:57 +02:00
|
|
|
|
|
|
|
function MyApp({ Component, pageProps }) {
|
|
|
|
return (
|
|
|
|
<Provider>
|
2021-06-27 12:44:22 +02:00
|
|
|
<ChakraProvider>
|
|
|
|
<Head>
|
|
|
|
<title>Cath Dashboard</title>
|
|
|
|
</Head>
|
|
|
|
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
|
|
|
|
<Header/>
|
|
|
|
<div className='page-container'>
|
|
|
|
<Component {...pageProps} />
|
|
|
|
</div>
|
|
|
|
</ChakraProvider>
|
2021-06-21 16:12:57 +02:00
|
|
|
</Provider>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default MyApp
|