Skip to content

Commit

Permalink
feat: 꿀조합 상세 디자인 변경 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
xodms0309 committed Apr 13, 2024
1 parent 8d5990f commit feb7e1f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
15 changes: 10 additions & 5 deletions src/pages/RecipeDetailPage/RecipeDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { MemberImage } from '@/components/Members';
import { ProductOverviewItem } from '@/components/Product';
import { CommentForm, CommentList, RecipeFavoriteButton } from '@/components/Recipe';
import { useRecipeDetailQuery } from '@/hooks/queries/recipe';
import { vars } from '@/styles/theme.css';
import { getFormattedDate } from '@/utils/date';
import displaySlice from '@/utils/displaySlice';

Expand All @@ -37,7 +38,7 @@ export const RecipeDetailPage = () => {

const { isOpen, isClosing, handleOpenBottomSheet, handleCloseBottomSheet } = useBottomSheet();

const { id, images, title, content, author, products, favorite, createdAt } = recipeDetail;
const { id, images, title, content, author, products, favorite, favoriteCount, createdAt } = recipeDetail;

return (
<>
Expand Down Expand Up @@ -65,10 +66,10 @@ export const RecipeDetailPage = () => {
<div className={recipeUsedProductsWrapper}>
<div className={boxIconWrapper}>
<div className={boxIcon}>
<SvgIcon variant="box" stroke="#ffffff" width={12} height={12} />
<SvgIcon variant="disk" stroke="#ffffff" fill="none" width={12} height={12} />
</div>
<Text size="caption3" weight="medium" color="info">
어떤 상품을 사용했나요?
이런 상품들을 사용했어요!
</Text>
</div>
<ul className={recipeUsedProductsImageList} onClick={handleOpenBottomSheet}>
Expand All @@ -95,10 +96,14 @@ export const RecipeDetailPage = () => {
<hr style={{ height: '1px', background: '#e6e6e6', border: 0 }} />
<div style={{ height: '14px' }} />
<section className={container}>
<RecipeFavoriteButton recipeId={id} favorite={favorite} />
<RecipeFavoriteButton recipeId={id} favorite={favorite} favoriteCount={favoriteCount} />
<Spacing size={24} />
<p className={recipeContent}>{content}</p>
<Text size="body" className={recipeContent}>
{content}
</Text>
<Spacing size={24} />
<hr style={{ height: '12px', background: vars.colors.border.light, border: 0 }} />
<Spacing size={20} />
<CommentForm recipeId={Number(recipeId)} scrollTargetRef={scrollTargetRef} />
<ErrorBoundary fallback={ErrorComponent} handleReset={reset}>
<Suspense fallback={<Loading />}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/RecipeDetailPage/recipeDetailPage.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const boxIcon = style({
width: 26,
height: 26,
marginRight: 8,
background: '#D9D9D9',
background: vars.colors.gray5,
borderRadius: '50%',
});

Expand Down

0 comments on commit feb7e1f

Please sign in to comment.