Skip to content

Commit

Permalink
refactor(storybook): use the new theme by default (#2769)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosCortizasCT authored Apr 9, 2024
1 parent e713af5 commit d961459
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 47 deletions.
3 changes: 1 addition & 2 deletions docs/.storybook/configs/contexts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import intlContext from './intl-context';
import themeContext from './theme-context';

export const contexts = [intlContext, themeContext];
export const contexts = [intlContext];
43 changes: 0 additions & 43 deletions docs/.storybook/configs/theme-context.js

This file was deleted.

2 changes: 1 addition & 1 deletion docs/.storybook/decorators/theme-wrapper/theme-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ThemeProvider } from '../../../../design-system';
const ThemeWrapper = (storyFn) => {
return (
<>
<ThemeProvider />
<ThemeProvider theme="recolouring" />
{storyFn()}
</>
);
Expand Down
2 changes: 1 addition & 1 deletion visual-testing-app/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const allSortedComponents = Object.keys(allUniqueRouteComponents)

const App = () => (
<>
<ThemeProvider />
<ThemeProvider theme="recolouring"/>
<Router>
<Switch>
<Route
Expand Down

0 comments on commit d961459

Please sign in to comment.