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
ccc9ff22
Commit
ccc9ff22
authored
Aug 18, 2017
by
Penn Su
Committed by
Tim Neutkens
Aug 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue (#2804)
https://github.com/zeit/next.js/issues/2800
parent
72edd591
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
withRoot.js
examples/with-material-ui-next/components/withRoot.js
+3
-3
No files found.
examples/with-material-ui-next/components/withRoot.js
View file @
ccc9ff22
import
React
,
{
Component
}
from
'react'
import
React
,
{
Component
}
from
'react'
import
{
JssProvider
}
from
'react-jss'
import
{
JssProvider
}
from
'react-jss'
import
{
withStyles
,
createStyleSheet
,
MuiThemeProvider
}
from
'material-ui/styles'
import
{
withStyles
,
MuiThemeProvider
}
from
'material-ui/styles'
import
{
getContext
}
from
'../styles/context'
import
{
getContext
}
from
'../styles/context'
// Apply some reset
// Apply some reset
const
styleSheet
=
createStyleSheet
(
theme
=>
({
const
styleSheet
=
theme
=>
({
'@global'
:
{
'@global'
:
{
html
:
{
html
:
{
background
:
theme
.
palette
.
background
.
default
,
background
:
theme
.
palette
.
background
.
default
,
...
@@ -15,7 +15,7 @@ const styleSheet = createStyleSheet(theme => ({
...
@@ -15,7 +15,7 @@ const styleSheet = createStyleSheet(theme => ({
margin
:
0
margin
:
0
}
}
}
}
})
)
})
let
AppWrapper
=
props
=>
props
.
children
let
AppWrapper
=
props
=>
props
.
children
...
...
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