From d4fb1e3aba17c0cf1d316acfa02036d0420c3be3 Mon Sep 17 00:00:00 2001 From: Divlo Date: Thu, 19 Mar 2020 09:07:29 +0100 Subject: [PATCH] frontend: Layout (Header, Content, Footer) _app.js --- frontend/{components/Layout.js => pages/_app.js} | 14 ++++++++------ frontend/pages/index.js | 6 +++--- 2 files changed, 11 insertions(+), 9 deletions(-) rename frontend/{components/Layout.js => pages/_app.js} (54%) diff --git a/frontend/components/Layout.js b/frontend/pages/_app.js similarity index 54% rename from frontend/components/Layout.js rename to frontend/pages/_app.js index d78d2b2..342b06a 100644 --- a/frontend/components/Layout.js +++ b/frontend/pages/_app.js @@ -2,8 +2,8 @@ import { Fragment } from 'react'; /* Components Imports */ -import Header from './Header/Header'; -import Footer from './Footer/Footer'; +import Header from '../components/Header/Header'; +import Footer from '../components/Footer/Footer'; /* CSS Imports */ import '../public/fonts/Montserrat/Montserrat.css'; @@ -11,12 +11,14 @@ import '../public/css/normalize.css'; import '../public/css/grid.css'; import '../public/css/general.css'; -const Layout = (props) => ( +const App = ({ Component, pageProps }) => (
-
{props.children}
+
+ +