Sammy/t fix display of comment section (#197)

* feature: do not display commentChip if no comments

* style: add mocked data for comment sections
This commit is contained in:
Sammy Teillet
2023-06-05 17:36:56 +02:00
committed by GitHub
parent 063ef8a4eb
commit 236437e4ff
2 changed files with 19 additions and 0 deletions

View File

@ -47,6 +47,7 @@ const StyledCount = styled.div`
`;
export function CommentChip({ count, onClick }: CommentChipProps) {
if (count === 0) return null;
const formattedCount = count > 99 ? '99+' : count;
return (