-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[add]DeleteModal.stories.tsx EditModal.stories.tsx OpenDeleteModalBut…
…ton.stories.tsx OpenEditModalButton.stories.tsx
- Loading branch information
1 parent
187b565
commit 4ae1f05
Showing
7 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { default as DeleteModal } from './DeleteModal'; | ||
export { default as EditModal } from './EditModal'; | ||
export { default as OpenDeleteModalButton } from './OpenDeleteModalButton'; | ||
export { default as OpenEditModalButton } from './OpenEditModalButton'; |
18 changes: 18 additions & 0 deletions
18
view/next-project/src/stories/users/DeleteModal.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { DeleteModal } from '@components/users/'; | ||
|
||
const meta: Meta<typeof DeleteModal> = { | ||
title: 'FinanSu/users/DeleteModal', | ||
component: DeleteModal, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Primary = { | ||
args: { | ||
className: 'm-10', | ||
children: <h1>children</h1>, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Meta, StoryFn } from '@storybook/react'; | ||
import { EditModal } from '@components/users'; // 名前のインポートを修正 | ||
|
||
const meta: Meta<typeof EditModal> = { | ||
title: 'FinanSu/users/EditModal', | ||
component: EditModal, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
}; | ||
|
||
export default meta; | ||
|
||
const Template: StoryFn<typeof EditModal> = (args) => <EditModal {...args} />; | ||
|
||
export const Primary = Template.bind({}); | ||
Primary.args = { | ||
setShowModal: () => { | ||
// Add your implementation here | ||
}, | ||
id: 1, | ||
bureaus: [ | ||
{ id: 1, name: 'Bureau 1' }, | ||
{ id: 2, name: 'Bureau 2' }, | ||
], | ||
user: { | ||
id: 1, | ||
name: 'John Doe', | ||
bureauID: 1, | ||
roleID: 1, | ||
}, | ||
}; |
18 changes: 18 additions & 0 deletions
18
view/next-project/src/stories/users/OpenDeleteModalButton.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { OpenDeleteModalButton } from '@components/users'; | ||
|
||
const meta: Meta<typeof OpenDeleteModalButton> = { | ||
title: 'FinanSu/users/OpenDeleteModalButton', | ||
component: OpenDeleteModalButton, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Primary = { | ||
args: { | ||
className: 'm-10', | ||
children: <h1>children</h1>, | ||
}, | ||
}; |
18 changes: 18 additions & 0 deletions
18
view/next-project/src/stories/users/OpenEditModalButton.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Meta } from '@storybook/react'; | ||
import { OpenEditModalButton } from '@components/users'; | ||
|
||
const meta: Meta<typeof OpenEditModalButton> = { | ||
title: 'FinanSu/users/OpenEditModalButton', | ||
component: OpenEditModalButton, | ||
tags: ['autodocs'], | ||
argTypes: {}, | ||
}; | ||
|
||
export default meta; | ||
|
||
export const Primary = { | ||
args: { | ||
className: 'm-10', | ||
children: <h1>children</h1>, | ||
}, | ||
}; |