Fixes for the updated Next.js version.

This commit is contained in:
Jayden Seric 2019-10-09 15:12:05 +11:00
parent e236fa098a
commit f89959fec8
5 changed files with 8 additions and 10 deletions

View File

@ -6,9 +6,9 @@ const Page = ({ title, children }) => (
<title>{title}</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ffffff" />
<link rel="manifest" href="/static/manifest.webmanifest" />
<link rel="icon" sizes="192x192" href="/static/icon.png" />
<link rel="apple-touch-icon" href="/static/launcher-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="icon" sizes="192x192" href="/icon.png" />
<link rel="apple-touch-icon" href="/launcher-icon.png" />
</Head>
{children}
<style jsx global>{`

View File

@ -2,7 +2,7 @@ import 'cross-fetch/polyfill'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { ApolloClient } from 'apollo-client'
import { createUploadLink } from 'apollo-upload-client'
import App, { Container } from 'next/app'
import App from 'next/app'
import Head from 'next/head'
import { ApolloProvider, getDataFromTree } from 'react-apollo'
@ -46,13 +46,11 @@ export default class CustomApp extends App {
this.props.apolloClient || createApolloClient(this.props.apolloCache)
render() {
const { Component, pageProps } = this.props
const { Component, pageProps = {} } = this.props
return (
<Container>
<ApolloProvider client={this.apolloClient}>
<Component {...pageProps} />
</ApolloProvider>
</Container>
<ApolloProvider client={this.apolloClient}>
<Component {...pageProps} />
</ApolloProvider>
)
}
}

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB