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:
@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user