Skip to content

Commit

Permalink
fix: default value
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Jul 27, 2023
1 parent 8603b8a commit 9cd0bd1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/storybook/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ export const parameters = {
// // }, [statusByPage]);

const initialTheme = props.context.store.globals.globals.theme;

const { theme: previewTheme } = useThemeSwitcher(initialTheme);

return (
<div data-theme={initialTheme}>
<div data-theme={previewTheme?.base || 'light'}>
<DocsContainer {...props} theme={previewTheme} />
</div>
);
Expand Down

0 comments on commit 9cd0bd1

Please sign in to comment.