Skip to content

Commit

Permalink
remove theme toggle from storybook (#3541)
Browse files Browse the repository at this point in the history
Co-authored-by: Ollie Curtis <[email protected]>
  • Loading branch information
mungodewar and olliecurtis authored Jul 17, 2024
1 parent 77e32ae commit 9777879
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,9 @@ import '../packages/bpk-stylesheets/font';
import '../packages/bpk-stylesheets/larken';

import BpkRtlToggle from '../packages/bpk-component-rtl-toggle';
import BpkThemeToggle, {
updateOnThemeChange,
} from '../packages/bpk-component-theme-toggle';
import BpkThemeProvider from '../packages/bpk-theming';

import themeableAttributes from './themeableAttributes';

import type { Preview } from '@storybook/react';

const EnhancedThemeProvider = updateOnThemeChange(BpkThemeProvider);

const preview: Preview = {
decorators: [
(story, { args }) => {
Expand All @@ -52,15 +44,9 @@ const preview: Preview = {
}
return (
<div>
<EnhancedThemeProvider themeAttributes={themeableAttributes}>
{story()}
</EnhancedThemeProvider>
<br />
<BpkRtlToggle />
<br />
<div style={{ width: '10rem' }}>
<BpkThemeToggle />
</div>
</div>
)},
],
Expand Down

0 comments on commit 9777879

Please sign in to comment.