aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/modals/settings-modal.stories.tsx
blob: c19a6d7a5844b75e1430e3001a62dba5c1d302c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { ComponentMeta, ComponentStory } from '@storybook/react';
import { IntlProvider } from 'react-intl';
import SettingsModal from './settings-modal';

export default {
  title: 'Organisms/Modals',
  component: SettingsModal,
  argTypes: {
    className: {
      control: {
        type: 'text',
      },
      description: 'Set additional classnames to the modal wrapper.',
      table: {
        category: 'Styles',
      },
      type: {
        name: 'string',
        required: false,
      },
    },
  },
} as ComponentMeta<typeof SettingsModal>;

const Template: ComponentStory<typeof SettingsModal> = (args) => (
  <IntlProvider locale="en">
    <SettingsModal {...args} />
  </IntlProvider>
);

export const Settings = Template.bind({});