-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: 기초 recipe item 컴포넌트 구현 #83
Merged
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5dff033
refactor: 기초 recipe item 컴포넌트 구현
hae-on 6907a47
fix: 자동 배포 오류 수정
hae-on 266e366
chore: feat v2 병합
hae-on c06af98
refactor: 작가와 생성된 날짜 묶기
hae-on 96403bb
refactor: recipe 가져오는 방식 변경
hae-on af65092
chore: feat v2 병합
hae-on eeccf3a
refactor: css 없어진 속성 삭제
hae-on f1d84bc
refactor: 각 컴포넌트 추가
hae-on bba1706
refactor: 스토리북 내부 컴포넌트로 교체
hae-on 4ad3aa3
refactor: 기본 이미지 랜덤 이미지로 변경
hae-on 3dd571c
refactor: 레시피 랭킹 컴포넌트 교체
hae-on 08259c4
refactor: recipe item 컴포넌트 export 방식 변경
hae-on a6a656e
refactor: 상품 상세 포함된 꿀조합 컴포넌트 수정
hae-on be48d52
refactor: 꿀조합 페이지 컴포넌트 변경
hae-on d49e5c5
chore: lint 적용
hae-on 33ccebc
refactor: image 감싸는 div에 line height 0 부여
hae-on f3281b0
refactor: 컴포넌트에서 바로 recipe 받도록 수정
hae-on File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,50 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import RecipeItem from './RecipeItem'; | ||
import RecipeItem, { | ||
DefaultRecipeItem, | ||
RecipeItemWithDiskIcon, | ||
RecipeItemWithDiskIconAndContent, | ||
RecipeItemWithProductDetailImage, | ||
} from './RecipeItem'; | ||
|
||
import RecipeItemProvider from '@/contexts/RecipeItemContext'; | ||
import mockRecipe from '@/mocks/data/recipes.json'; | ||
|
||
const meta: Meta<typeof RecipeItem> = { | ||
title: 'recipe/RecipeItem', | ||
component: RecipeItem, | ||
args: { | ||
recipe: mockRecipe.recipes[0], | ||
}, | ||
decorators: [ | ||
(Story) => ( | ||
<RecipeItemProvider recipe={mockRecipe.recipes[1]}> | ||
<Story /> | ||
</RecipeItemProvider> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof RecipeItem>; | ||
|
||
export const Default: Story = {}; | ||
export const Default: Story = { | ||
render: () => { | ||
return <DefaultRecipeItem />; | ||
}, | ||
}; | ||
|
||
export const Recipe: Story = { | ||
render: () => { | ||
return <RecipeItemWithDiskIconAndContent />; | ||
}, | ||
}; | ||
|
||
export const MyPage: Story = { | ||
render: () => { | ||
return <RecipeItemWithProductDetailImage />; | ||
}, | ||
}; | ||
|
||
export const Search: Story = { | ||
render: () => { | ||
return <RecipeItemWithDiskIcon />; | ||
}, | ||
}; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
props로 내려주고