insomnia/packages/insomnia-components/.storybook/preview.js
Dimitri Mitropoulos 5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00

10 lines
375 B
JavaScript

import { configure, addDecorator } from '@storybook/react';
import { withContexts } from '@storybook/addon-contexts/react';
import { contexts } from './configs/contexts';
import { withInfo } from '@storybook/addon-info';
addDecorator(withContexts(contexts));
addDecorator(withInfo({ inline: true }));
configure(require.context('../src', true, /\.stories\.tsx?$/), module);