From 8a5825d52271d712ec7c8348447d433067e13ef2 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 13 Sep 2018 14:18:56 -0400 Subject: DONE --- finished-application/frontend/pages/_app.js | 36 ----------------------------- 1 file changed, 36 deletions(-) delete mode 100644 finished-application/frontend/pages/_app.js (limited to 'finished-application/frontend/pages/_app.js') diff --git a/finished-application/frontend/pages/_app.js b/finished-application/frontend/pages/_app.js deleted file mode 100644 index 4e9af74..0000000 --- a/finished-application/frontend/pages/_app.js +++ /dev/null @@ -1,36 +0,0 @@ -import App, { Container } from 'next/app'; -import { ApolloProvider } from 'react-apollo'; -import withData from '../lib/withData'; -import Page from '../components/Page'; - -// Next.js wraps each Page in an component. This is handy for when you want to persist anything from page to page, or just access a component that is 1 level higher than each page. - -// here we use App from next/app and wrap it with withData so we can get Apollo and SSR - -class MyApp extends App { - static async getInitialProps({ Component, ctx }) { - let pageProps = {}; - if (Component.getInitialProps) { - pageProps = await Component.getInitialProps(ctx); - } - - pageProps.query = ctx.query; - - return { pageProps }; - } - render() { - const { Component, pageProps, apollo } = this.props; - - return ( - - - - - - - - ); - } -} - -export default withData(MyApp); -- cgit v1.3