-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad20253
commit 0b4bc9b
Showing
2 changed files
with
83 additions
and
3 deletions.
There are no files selected for viewing
80 changes: 80 additions & 0 deletions
80
frontend/src/components/Reminder/MonthBox/MonthBox.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,80 @@ | ||
import { ReminderExtendType } from 'types/api/reminder'; | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import MonthBox from '.'; | ||
|
||
const meta: Meta<typeof MonthBox> = { | ||
component: MonthBox, | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj<typeof MonthBox>; | ||
|
||
export const NotHasDate: Story = { | ||
render: () => { | ||
const mockData: ReminderExtendType[] = [ | ||
{ | ||
petPlantId: 1, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '참새나무', | ||
dictionaryPlantName: '알로카시아', | ||
dDay: 0, | ||
nextWaterDate: '2023-07-07', | ||
date: '07', | ||
status: 'late', | ||
}, | ||
{ | ||
petPlantId: 6, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '쵸파 나무', | ||
dictionaryPlantName: '스투키', | ||
dDay: 0, | ||
nextWaterDate: '2023-07-26', | ||
date: '26', | ||
status: 'exist', | ||
}, | ||
{ | ||
petPlantId: 7, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '클린 나무', | ||
dictionaryPlantName: '스투키', | ||
dDay: 0, | ||
nextWaterDate: '2023-07-26', | ||
date: '26', | ||
status: 'exist', | ||
}, | ||
{ | ||
petPlantId: 8, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '피움 나무', | ||
dictionaryPlantName: '스투키', | ||
dDay: 0, | ||
nextWaterDate: '2023-07-26', | ||
date: '26', | ||
status: 'exist', | ||
}, | ||
{ | ||
petPlantId: 9, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '포비 나무', | ||
dictionaryPlantName: '스투키', | ||
dDay: -3, | ||
nextWaterDate: '2023-07-29', | ||
date: '29', | ||
status: 'none', | ||
}, | ||
{ | ||
petPlantId: 10, | ||
image: 'https://images.unsplash.com/photo-1598983062491-5934ce558814', | ||
nickName: '크론 나무', | ||
dictionaryPlantName: '스투키', | ||
dDay: -3, | ||
nextWaterDate: '2023-07-29', | ||
date: '29', | ||
status: 'none', | ||
}, | ||
]; | ||
|
||
return <MonthBox reminderDates={mockData} month="7" />; | ||
}, | ||
}; |
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