From a167af8a639412aac3e577429bf99fc02801d206 Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Tue, 24 Mar 2020 00:09:22 +0100 Subject: [PATCH] fix build --- docs/src/modules/components/AppContainer.js | 2 +- packages/material-ui/src/styles/createPalette.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/modules/components/AppContainer.js b/docs/src/modules/components/AppContainer.js index 5251803b92f425..46cda5318851da 100644 --- a/docs/src/modules/components/AppContainer.js +++ b/docs/src/modules/components/AppContainer.js @@ -4,7 +4,7 @@ import clsx from 'clsx'; import { makeStyles } from '@material-ui/core/styles'; import Container from '@material-ui/core/Container'; -const useStyles = makeStyles(theme => ({ +const useStyles = makeStyles((theme) => ({ root: { paddingTop: 80 + 16, [theme.breakpoints.up('lg')]: { diff --git a/packages/material-ui/src/styles/createPalette.spec.ts b/packages/material-ui/src/styles/createPalette.spec.ts index 45779b5112a974..ca49e1fc130515 100644 --- a/packages/material-ui/src/styles/createPalette.spec.ts +++ b/packages/material-ui/src/styles/createPalette.spec.ts @@ -1,14 +1,14 @@ import { Color } from '@material-ui/core'; import { blue, common } from '@material-ui/core/colors'; import { - createPalette, + createMuiTheme, PaletteColorOptions, SimplePaletteColorOptions, Theme, } from '@material-ui/core/styles'; { - const palette = createPalette({}); + const palette = createMuiTheme({}).palette; const color: Color = blue; const option: SimplePaletteColorOptions = { main: blue[400] }; const colorOrOption: PaletteColorOptions = undefined as any;