Skip to content

Commit

Permalink
feat: 좋아요 버튼의 색상 반전 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
minjongbaek committed Dec 4, 2023
1 parent 78a80c6 commit ba304bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/bookshelf/[bookshelfId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export default function UserBookShelfPage({
size="small"
colorScheme="warning"
fullRadius
fill={data.isLiked ? false : true}
fill={data.isLiked ? true : false}
onClick={handleClickLikeButton}
>
<div className="bold flex items-center gap-[0.3rem] text-xs">
<IconHeart
fill={!data.isLiked ? '#F56565' : 'white'}
stroke={data.isLiked ? '#F56565' : 'white'}
fill={data.isLiked ? '#F56565' : 'white'}
stroke={!data.isLiked ? '#F56565' : 'white'}
stroke-width={1.5}
height="1.3rem"
w="1.3rem"
Expand Down

0 comments on commit ba304bc

Please sign in to comment.