Skip to content

Commit b893b90

Browse files
author
spoeck
committed
switch to theme provider
1 parent f8efef0 commit b893b90

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/stories/index.stories.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { createMuiTheme, CssBaseline, MuiThemeProvider } from '@material-ui/core';
1+
import { createMuiTheme, CssBaseline } from '@material-ui/core';
2+
import { ThemeProvider } from '@material-ui/styles';
23
import * as React from 'react';
34
import { scale } from './storybook_utils.tsx/utils';
45

@@ -23,10 +24,10 @@ const theme = createMuiTheme({
2324
});
2425
export const withTheme = (component: any) => {
2526
return (
26-
<MuiThemeProvider theme={theme}>
27+
<ThemeProvider theme={theme}>
2728
{/* Reboot kickstart an elegant, consistent, and simple baseline to build upon. */}
2829
<CssBaseline />
2930
{component}
30-
</MuiThemeProvider>
31+
</ThemeProvider>
3132
);
3233
};

0 commit comments

Comments
 (0)