Skip to content

Commit

Permalink
Update storybook example
Browse files Browse the repository at this point in the history
  • Loading branch information
ciampo committed Feb 4, 2022
1 parent 1a57854 commit e82ad27
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/components/src/utils/hooks/stories/use-cx.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,19 +115,17 @@ export const _useMemoBadPractices = () => {
const blueText = css`
color: blue;
`;
const greenText = css`
color: green;
`;

return (
<>
<Example args={ [ redText ] }>This text should be red</Example>
<ExampleWithUseMemoRight args={ [ blueText ] }>
This text should be blue
</ExampleWithUseMemoRight>
<Iframe>
<Example args={ [ redText ] }>This text should be red</Example>
<ExampleWithUseMemoWrong args={ [ greenText ] }>
This text should be green but it&apos;s not!
<ExampleWithUseMemoWrong args={ [ blueText ] }>
This text should be blue but it&apos;s not!
</ExampleWithUseMemoWrong>
</Iframe>
</>
Expand Down

0 comments on commit e82ad27

Please sign in to comment.