-
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.
Merge branch 'feat/v2' into feat/issue-88
- Loading branch information
Showing
24 changed files
with
387 additions
and
200 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
18 changes: 0 additions & 18 deletions
18
src/components/Rank/RecipeRankingItem/RecipeRankingItem.stories.tsx
This file was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/components/Rank/RecipeRankingItem/RecipeRankingItem.tsx
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
src/components/Rank/RecipeRankingItem/recipeRankingItem.css.ts
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,18 +1,42 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import RecipeItem from './RecipeItem'; | ||
import RecipeItem, { | ||
DefaultRecipeItem, | ||
RecipeItemWithDiskIcon, | ||
RecipeItemWithDiskIconAndContent, | ||
RecipeItemWithProductDetailImage, | ||
} from './RecipeItem'; | ||
|
||
import mockRecipe from '@/mocks/data/recipes.json'; | ||
|
||
const meta: Meta<typeof RecipeItem> = { | ||
title: 'recipe/RecipeItem', | ||
component: RecipeItem, | ||
args: { | ||
recipe: mockRecipe.recipes[0], | ||
}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof RecipeItem>; | ||
|
||
export const Default: Story = {}; | ||
export const Default: Story = { | ||
render: () => { | ||
return <DefaultRecipeItem recipe={mockRecipe.recipes[1]} />; | ||
}, | ||
}; | ||
|
||
export const Recipe: Story = { | ||
render: () => { | ||
return <RecipeItemWithDiskIconAndContent recipe={mockRecipe.recipes[1]} />; | ||
}, | ||
}; | ||
|
||
export const MyPage: Story = { | ||
render: () => { | ||
return <RecipeItemWithProductDetailImage recipe={mockRecipe.recipes[1]} />; | ||
}, | ||
}; | ||
|
||
export const Search: Story = { | ||
render: () => { | ||
return <RecipeItemWithDiskIcon recipe={mockRecipe.recipes[1]} />; | ||
}, | ||
}; |
Oops, something went wrong.