Skip to content

Commit

Permalink
feat: #245 - Comment 컴포넌트 답글 없는 경우 replyCount 표시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
eeseung committed Dec 3, 2023
1 parent ba2c259 commit 25934fa
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/components/common/Comment/Comment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,18 @@ const Comment = ({
{getElapsedTime(createdAt)}
{isRoot && (
<>
{' • '}
<Button
className="font-medium"
onClick={() => replyCount > 0 && onOpen && onOpen(commentId)}>
{replyCount}개의 답글
</Button>
{replyCount > 0 && (
<>
{' • '}
<Button
className="font-medium"
onClick={() =>
replyCount > 0 && onOpen && onOpen(commentId)
}>
{replyCount}개의 답글
</Button>
</>
)}
{' • '}
<Button
className="font-medium"
Expand Down

0 comments on commit 25934fa

Please sign in to comment.