We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8efef0 commit b893b90Copy full SHA for b893b90
src/stories/index.stories.tsx
@@ -1,4 +1,5 @@
1
-import { createMuiTheme, CssBaseline, MuiThemeProvider } from '@material-ui/core';
+import { createMuiTheme, CssBaseline } from '@material-ui/core';
2
+import { ThemeProvider } from '@material-ui/styles';
3
import * as React from 'react';
4
import { scale } from './storybook_utils.tsx/utils';
5
@@ -23,10 +24,10 @@ const theme = createMuiTheme({
23
24
});
25
export const withTheme = (component: any) => {
26
return (
- <MuiThemeProvider theme={theme}>
27
+ <ThemeProvider theme={theme}>
28
{/* Reboot kickstart an elegant, consistent, and simple baseline to build upon. */}
29
<CssBaseline />
30
{component}
- </MuiThemeProvider>
31
+ </ThemeProvider>
32
);
33
};
0 commit comments