Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
6d253901
Unverified
Commit
6d253901
authored
Aug 11, 2019
by
Tim Neutkens
Committed by
GitHub
Aug 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix layout example building (#8326)
parent
869bf0f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
_app.js
examples/with-dynamic-app-layout/pages/_app.js
+8
-6
No files found.
examples/with-dynamic-app-layout/pages/_app.js
View file @
6d253901
import
React
from
'react'
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
{
export
default
class
MyApp
extends
App
{
render
()
{
render
()
{
const
{
Component
,
pageProps
}
=
this
.
props
const
{
Component
,
pageProps
}
=
this
.
props
const
Layout
=
Component
.
Layout
||
Noop
return
(
return
(
<
Container
>
<
Layout
>
<
Component
.
Layout
>
<
Component
{...
pageProps
}
/
>
<
Component
{...
pageProps
}
/
>
<
/Layout
>
<
/Component.Layout
>
<
/Container
>
)
)
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment