qmining-page/src/pages/_app.js
2020-11-07 08:58:37 +01:00

26 lines
763 B
JavaScript

// import App from 'next/app'
import '../defaultStyles.css'
import Layout from '../components/layout'
function MyApp({ Component, pageProps, router }) {
return (
<Layout route={router.route}>
<Component {...pageProps} router={router} />
</Layout>
)
}
// Only uncomment this method if you have blocking data requirements for
// every single page in your application. This disables the ability to
// perform automatic static optimization, causing every page in your app to
// be server-side rendered.
//
// MyApp.getInitialProps = async (appContext) => {
// // calls page's `getInitialProps` and fills `appProps.pageProps`
// const appProps = await App.getInitialProps(appContext);
//
// return { ...appProps }
// }
export default MyApp