playwright/.storybook/preview.js

15 lines
337 B
JavaScript
Raw Normal View History

2021-01-21 19:29:01 +03:00
import { addDecorator } from '@storybook/react';
import '../src/web/common.css';
import { applyTheme } from '../src/web/theme';
2021-01-21 19:29:01 +03:00
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },
}
addDecorator(storyFn => {
applyTheme();
return <div style={{backgroundColor: 'var(--background)'}}>
{storyFn()}
</div>
});