Fixes for the updated Next.js version.
This commit is contained in:
parent
e236fa098a
commit
f89959fec8
@ -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>{`
|
||||
|
||||
@ -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>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
Loading…
x
Reference in New Issue
Block a user