|
1 | 1 | import { action } from 'storybook/actions' |
2 | 2 |
|
3 | 3 | import { Button } from '../../../Button' |
| 4 | +import { ActionDialog } from '../ActionDialog' |
4 | 5 | import { RemoteDialogTrigger } from '../RemoteDialogTrigger' |
5 | | -import { RemoteTriggerActionDialog } from '../RemoteTriggerActionDialog' |
6 | 6 |
|
7 | 7 | import type { Meta, StoryObj } from '@storybook/react-webpack5' |
8 | 8 |
|
9 | 9 | /** props は [ActionDialog](./?path=/docs/dialog(ダイアログ)-dialog-actiondialog--docs) を参照してください。 */ |
10 | 10 | export default { |
11 | | - title: 'Components/Dialog/RemoteDialogTrigger/RemoteTriggerActionDialog', |
12 | | - component: RemoteTriggerActionDialog, |
| 11 | + title: 'Components/Dialog/RemoteDialogTrigger/ActionDialog', |
| 12 | + component: ActionDialog, |
13 | 13 | render: (args) => ( |
14 | 14 | <> |
15 | 15 | <RemoteDialogTrigger targetId="remote-dialog"> |
16 | 16 | <Button>ダイアログを開く</Button> |
17 | 17 | </RemoteDialogTrigger> |
18 | | - <RemoteTriggerActionDialog |
| 18 | + <ActionDialog |
19 | 19 | {...args} |
20 | 20 | id="remote-dialog" |
21 | | - heading="リモートトリガーアクションダイアログ" |
| 21 | + heading="アクションダイアログ" |
22 | 22 | actionText="アクション" |
23 | 23 | onClickAction={(e, { close }) => { |
24 | 24 | action('onClickAction')(e) |
25 | 25 | close() |
26 | 26 | }} |
27 | 27 | > |
28 | | - <p>リモートトリガーアクションダイアログです。</p> |
29 | | - </RemoteTriggerActionDialog> |
| 28 | + <p>アクションダイアログです。</p> |
| 29 | + </ActionDialog> |
30 | 30 | </> |
31 | 31 | ), |
32 | 32 | parameters: { |
33 | 33 | chromatic: { disableSnapshot: true }, |
34 | 34 | }, |
35 | | -} as Meta<typeof RemoteTriggerActionDialog> |
| 35 | +} as Meta<typeof ActionDialog> |
36 | 36 |
|
37 | | -export const Playground: StoryObj<typeof RemoteTriggerActionDialog> = {} |
| 37 | +export const Playground: StoryObj<typeof ActionDialog> = {} |
0 commit comments