feat: add like button on picture note card
This commit is contained in:
parent
92a0f9071f
commit
52daf39584
4 changed files with 10 additions and 6 deletions
|
|
@ -83,7 +83,7 @@ export default function LikeButton({
|
|||
) : (
|
||||
<Heart size={16} className={hasLiked ? 'fill-red-400' : ''} />
|
||||
)}
|
||||
<div className="text-sm">{formatCount(likeCount)}</div>
|
||||
{!!likeCount && <div className="text-sm">{formatCount(likeCount)}</div>}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue