Skip to content

Commit

Permalink
Update preview.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth committed Sep 28, 2023
1 parent 7c1017c commit d2c0614
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ const preview: Preview = {
},
decorators: [
(Story) => (
<StyleSheetManager shouldForwardProp={isPropValid}>
<StyleSheetManager
shouldForwardProp={(propName, elementToBeRendered) =>
typeof elementToBeRendered === 'string' ? isPropValid(propName) : true
}
>
<div className="flex">
<Story />
</div>
Expand Down

0 comments on commit d2c0614

Please sign in to comment.