Skip to content

Commit 367c445

Browse files
committed
Fix storybook
1 parent 029e658 commit 367c445

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

site/.storybook/preview.jsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import CssBaseline from "@mui/material/CssBaseline"
2-
import ThemeProvider from "@mui/styles/ThemeProvider"
2+
import { StyledEngineProvider, ThemeProvider } from "@mui/material/styles"
33
import { createMemoryHistory } from "history"
44
import { unstable_HistoryRouter as HistoryRouter } from "react-router-dom"
55
import { dark } from "../src/theme"
@@ -10,10 +10,12 @@ const history = createMemoryHistory()
1010

1111
export const decorators = [
1212
(Story) => (
13-
<ThemeProvider theme={dark}>
14-
<CssBaseline />
15-
<Story />
16-
</ThemeProvider>
13+
<StyledEngineProvider injectFirst>
14+
<ThemeProvider theme={dark}>
15+
<CssBaseline />
16+
<Story />
17+
</ThemeProvider>
18+
</StyledEngineProvider>
1719
),
1820
(Story) => {
1921
return (

0 commit comments

Comments
 (0)