-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mod] add EventParticipantCard (#298)
- Loading branch information
tsubasaoura
authored and
tsubasaoura
committed
Feb 25, 2023
1 parent
4020ae4
commit 2240539
Showing
8 changed files
with
74 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
16 changes: 9 additions & 7 deletions
16
view/src/components/common/Card/EventParticipantCard.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 |
---|---|---|
@@ -1,20 +1,22 @@ | ||
import type { ComponentStory, ComponentMeta } from '@storybook/react' | ||
import { EventParticipantCard } from '.' | ||
import { EventParticipantCardProps } from './EventParticipantCard.type' | ||
|
||
export default { | ||
title: 'EvnetParticipantCard', | ||
component: EventParticipantCard, | ||
} as ComponentMeta<typeof EventParticipantCard> | ||
|
||
const Template: ComponentStory<typeof EventParticipantCard> = (args) => <EventParticipantCard {...args} /> | ||
const Template: ComponentStory<typeof EventParticipantCard> = (args: EventParticipantCardProps) => ( | ||
<EventParticipantCard {...args} /> | ||
) | ||
|
||
export const Default: ComponentStory<typeof EventParticipantCard> = Template.bind({}) | ||
|
||
// Default.args = { | ||
// // label: 'Default', | ||
// onClick: () => { | ||
// alert('クリック') | ||
// }, | ||
// } | ||
Default.args = { | ||
participantCount: 130, | ||
participantParsent: 10, | ||
participantType: 'all', | ||
} | ||
|
||
Default.storyName = 'Default' |
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,5 @@ | ||
export interface EventParticipantCardProps { | ||
participantType: 'all'|'inside'|'outside' | ||
participantCount: number | ||
participantParsent: number | ||
} |
Empty file.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
export { default as Card } from './Card' | ||
export { default as EventParticipantCard } from './EventParticipantCard' |
Empty file.
This file was deleted.
Oops, something went wrong.