Skip to content

Commit

Permalink
docs: fix sb decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
2nthony committed Mar 27, 2024
1 parent a145651 commit 65c2731
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ export const decorators = [
},
defaultTheme: "light",
}),
(Story) => {
return (
<ConfigProvider themeMode="system">
<Story />
</ConfigProvider>
);
// https://github.com/storybookjs/testing-react/issues/30#issuecomment-1542479018
(story) => {
return <ConfigProvider themeMode="system">{story()}</ConfigProvider>;
},
];

0 comments on commit 65c2731

Please sign in to comment.