nyx-dashboard/pages/_app.js
2021-06-29 12:59:43 +08:00

29 lines
879 B
JavaScript

import '../styles/globals.css'
import Head from 'next/head'
import { Provider } from 'next-auth/client'
import { ChakraProvider } from "@chakra-ui/react"
import Header from '../components/Nav/Header'
import theme from '../chakra_config/theme'
import { ColorModeScript } from "@chakra-ui/react"
import { Banner } from '../components/Banner/Banner'
function MyApp({ Component, pageProps }) {
return (
<Provider>
<ChakraProvider>
<Head>
<title>Cath Dashboard</title>
<link rel="icon" href="/logo.png" type="image/png"/>
</Head>
<ColorModeScript initialColorMode={theme.config.initialColorMode} />
<Header/>
<Banner/>
<div className='page-container'>
<Component {...pageProps} />
</div>
</ChakraProvider>
</Provider>
)
}
export default MyApp