Skip to content

Commit

Permalink
chore: wrap all stories in feature flags
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed Jan 14, 2025
1 parent 98b5456 commit d3867b4
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions packages/react/.storybook/preview.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const preview = {
['*', 'Playground', /Playground$/, 'Features', 'Examples'],
],
],
]
]
],
],
],
'Behaviors',
'Hooks',
Expand All @@ -82,8 +82,8 @@ const preview = {
['*', 'Playground', /Playground$/, 'Features', 'Examples'],
],
],
]
]
],
],
],
[
'Private',
Expand All @@ -100,8 +100,8 @@ const preview = {
['*', 'Playground', /Playground$/, 'Features', 'Examples'],
],
],
]
]
],
],
],
'*',
]
Expand Down Expand Up @@ -257,14 +257,6 @@ export const globalTypes = {
}

export const decorators = [
(Story, context) => {
const {featureFlags} = context.globals
return (
<FeatureFlags flags={featureFlags}>
<Story {...context} />
</FeatureFlags>
)
},
(Story, context) => {
const {colorScheme} = context.globals

Expand Down Expand Up @@ -318,6 +310,14 @@ export const decorators = [
</Profiler>
)
},
(Story, context) => {
const {featureFlags} = context.globals
return (
<FeatureFlags flags={featureFlags}>
<Story {...context} />
</FeatureFlags>
)
},
]

export default preview

0 comments on commit d3867b4

Please sign in to comment.