mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
Merge pull request #19367 from coofzilla/patch-2
This commit is contained in:
commit
d2a4abd5ce
@ -14,9 +14,9 @@ const withThemeProvider=(Story,context)=>{
|
||||
const theme = getTheme(context.globals.theme);
|
||||
return (
|
||||
<ThemeProvider theme={theme}>
|
||||
<Story {...context} />
|
||||
<Story />
|
||||
</ThemeProvider>
|
||||
)
|
||||
}
|
||||
export const decorators = [withThemeProvider];
|
||||
```
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user