Skip to content

Commit

Permalink
fix(storybook): skip wrapper components
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed Aug 10, 2019
1 parent 6da3254 commit cd370c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
13 changes: 3 additions & 10 deletions src/content/components/SaladBowl/SaladBowl.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { withPropsTable } from 'storybook-addon-react-docgen'
import { withKnobs, boolean, number } from '@storybook/addon-knobs'
import { SaladBowl } from './SaladBowl'
import { SaladBowlPortal } from './SaladBowl.portal'
import { withLocalStyle } from '@/_helpers/storybook'

storiesOf('Content Scripts|SaladBowl', module)
.addDecorator(withPropsTable)
Expand All @@ -23,16 +24,8 @@ storiesOf('Content Scripts|SaladBowl', module)
/>
),
{
decorators: [
function withShadowStyle(fn) {
return (
<div>
<style>{require('./SaladBowl.shadow.scss').toString()}</style>
{fn()}
</div>
)
}
]
decorators: [withLocalStyle(require('./SaladBowl.shadow.scss'))],
jsx: { skip: 1 }
}
)
.add('SaladBowlPortal', () => (
Expand Down
3 changes: 2 additions & 1 deletion src/content/components/WordEditor/WordEditor.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ storiesOf('Content Scripts|WordEditor', module)
)
},
{
decorators: [withLocalStyle(require('./WordEditor.scss'))]
decorators: [withLocalStyle(require('./WordEditor.scss'))],
jsx: { skip: 1 }
}
)
.add('WordEditorPortal', () => {
Expand Down

0 comments on commit cd370c9

Please sign in to comment.