2020-01-13 22:34:56 +01:00
|
|
|
import '@fortawesome/fontawesome-svg-core/styles.css';
|
2020-01-14 15:23:01 +01:00
|
|
|
import "../style.css";
|
|
|
|
import Header from './components/Header';
|
|
|
|
import Footer from './components/Footer';
|
2020-01-13 22:34:56 +01:00
|
|
|
// import App from 'next/app'
|
|
|
|
|
|
|
|
function MyApp({ Component, pageProps }) {
|
2020-01-14 15:23:01 +01:00
|
|
|
return (
|
|
|
|
<div className="root-container">
|
|
|
|
<Header />
|
|
|
|
<Component {...pageProps} />
|
|
|
|
<Footer />
|
|
|
|
</div>
|
|
|
|
)
|
2020-01-13 22:34:56 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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
|