Skip to content

Commit

Permalink
docs(featureflags): update storybook examples, flags prop (#18378)
Browse files Browse the repository at this point in the history
  • Loading branch information
tay1orjones authored Jan 17, 2025
1 parent 0c2ff15 commit 3704abf
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/react/src/components/FeatureFlags/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,7 @@ time.
```jsx
import { unstable_FeatureFlags as FeatureFlags } from '@carbon/react';

<FeatureFlags
flags={{
'enable-v12-tile-default-icons': true,
'enable-a-second-feature-flag': true,
}}>
<FeatureFlags enableV12TileDefaultIcons="true" enableASecondFeatureFlag="true">
<Tile />
</FeatureFlags>;
```
Expand All @@ -86,7 +82,7 @@ import App from './App';
const root = createRoot(document.getElementById('root'));
root.render(
<StrictMode>
<FeatureFlags flags={{ 'enable-v12-tile-default-icons': true }}>
<FeatureFlags enableV12TileDefaultIcons="true">
<App />
</FeatureFlags>
</StrictMode>
Expand Down

0 comments on commit 3704abf

Please sign in to comment.