Skip to content

Commit

Permalink
refactor: 각 컴포넌트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hae-on committed Apr 15, 2024
1 parent eeccf3a commit f1d84bc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions src/components/Recipe/RecipeItem/RecipeItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,55 @@ RecipeItem.AuthorAndCreatedDate = AuthorAndCreatedDate;
RecipeItem.Content = Content;

export default RecipeItem;

export const DefaultRecipeItem = () => {
return (
<RecipeItem>
<RecipeItem.ImageAndFavoriteButton />
<div style={{ height: '8px' }} />
<RecipeItem.Title />
<RecipeItem.AuthorAndCreatedDate />
</RecipeItem>
);
};

export const RecipeItemWithProductButton = () => {
return (
<RecipeItem>
<RecipeItem.ImageAndFavoriteButton>
<RecipeItem.ProductButton />
</RecipeItem.ImageAndFavoriteButton>
<div style={{ height: '8px' }} />
<RecipeItem.Title />
<RecipeItem.AuthorAndCreatedDate />
</RecipeItem>
);
};

export const RecipeItemWithProductCircleButton = () => {
return (
<RecipeItem>
<RecipeItem.ImageAndFavoriteButton>
<RecipeItem.ProductCircleButton />
</RecipeItem.ImageAndFavoriteButton>
<div style={{ height: '8px' }} />
<RecipeItem.Title />
<RecipeItem.Author />
<RecipeItem.Content />
</RecipeItem>
);
};

export const RecipeItemWithProductButtonAndContent = () => {
return (
<RecipeItem>
<RecipeItem.ImageAndFavoriteButton>
<RecipeItem.ProductButton />
</RecipeItem.ImageAndFavoriteButton>
<div style={{ height: '8px' }} />
<RecipeItem.Title />
<RecipeItem.AuthorAndCreatedDate />
<RecipeItem.Content />
</RecipeItem>
);
};

0 comments on commit f1d84bc

Please sign in to comment.