From 9803435730a738c0361c8c80f0dd2fc79c34533b Mon Sep 17 00:00:00 2001 From: Maksim Shastsel Date: Fri, 1 Sep 2017 00:24:49 +0300 Subject: [PATCH] [DOCS] material-ui/styles/palette -> material-ui/styles/createPalette (#7987) [docs] Fix SSR palette creation section --- docs/src/pages/guides/server-rendering.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/src/pages/guides/server-rendering.md b/docs/src/pages/guides/server-rendering.md index 0365c4b83a34f7..dd07625562edc0 100644 --- a/docs/src/pages/guides/server-rendering.md +++ b/docs/src/pages/guides/server-rendering.md @@ -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'; @@ -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