Unverified Commit 6d253901 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix layout example building (#8326)

parent 869bf0f1
import React from 'react'
import App, { Container } from 'next/app'
import App from 'next/app'
const Noop = ({ children }) => children
export default class MyApp extends App {
render () {
const { Component, pageProps } = this.props
const Layout = Component.Layout || Noop
return (
<Container>
<Component.Layout>
<Component {...pageProps} />
</Component.Layout>
</Container>
<Layout>
<Component {...pageProps} />
</Layout>
)
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment