Skip to content

Commit

Permalink
[DOCS] material-ui/styles/palette -> material-ui/styles/createPalette (
Browse files Browse the repository at this point in the history
…mui#7987)

[docs] Fix SSR palette creation section
  • Loading branch information
Maksim Shastsel authored and oliviertassinari committed Aug 31, 2017
1 parent 362116c commit 9803435
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/src/pages/guides/server-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ import { JssProvider, SheetsRegistry } from 'react-jss'
import { create } from 'jss';
import preset from 'jss-preset-default';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import createPalette from 'material-ui/styles/palette';
import createGenerateClassName from 'material-ui/styles/createGenerateClassName';
import { green, red } from 'material-ui/colors';

Expand All @@ -81,11 +80,11 @@ function handleRender(req, res) {

// Create a theme instance.
const theme = createMuiTheme({
palette: createPalette({
palette: {
primary: green,
accent: red,
type: 'light',
}),
},
});

// Configure JSS
Expand Down

0 comments on commit 9803435

Please sign in to comment.