nyx-dashboard/pages/_app.js

28 lines
806 B
JavaScript
Raw Normal View History

import '../styles/globals.css'
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"
function MyApp({ Component, pageProps }) {
return (
<Provider>
2021-06-27 12:44:22 +02:00
<ChakraProvider>
<Head>
<title>Cath Dashboard</title>
2021-06-28 05:03:17 +02:00
<link rel="icon" href="/logo.png" type="image/png"/>
2021-06-27 12:44:22 +02:00
</Head>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Header/>
<div className='page-container'>
<Component {...pageProps} />
</div>
</ChakraProvider>
</Provider>
)
}
export default MyApp