vega-frontend-monorepo/libs/positions/.storybook/preview.js
2023-07-04 13:01:25 +02:00

26 lines
570 B
JavaScript

import './styles.scss';
import { useStorybookThemeObserver } from '@vegaprotocol/react-helpers';
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
backgrounds: { disable: true },
themes: {
default: 'dark',
list: [
{ name: 'dark', class: ['dark', 'bg-black'], color: '#000' },
{ name: 'light', class: '', color: '#FFF' },
],
},
};
export const decorators = [
(Story) => {
useStorybookThemeObserver();
return (
<div style={{ width: '100%', height: 500 }}>
<Story />
</div>
);
},
];