diff --git a/app/soapbox/features/chats/components/chat.tsx b/app/soapbox/features/chats/components/chat.tsx index 63430dea4..e2e4e90c1 100644 --- a/app/soapbox/features/chats/components/chat.tsx +++ b/app/soapbox/features/chats/components/chat.tsx @@ -4,10 +4,10 @@ import { FormattedMessage } from 'react-intl'; import Avatar from 'soapbox/components/avatar'; import DisplayName from 'soapbox/components/display-name'; import Icon from 'soapbox/components/icon'; +import { Counter } from 'soapbox/components/ui'; import emojify from 'soapbox/features/emoji/emoji'; import { useAppSelector } from 'soapbox/hooks'; import { makeGetChat } from 'soapbox/selectors'; -import { shortNumberFormat } from 'soapbox/utils/numbers'; import type { Account as AccountEntity, Chat as ChatEntity } from 'soapbox/types/entities'; @@ -59,7 +59,11 @@ const Chat: React.FC = ({ chatId, onClick }) => { {image ? : } )} - {unreadCount > 0 && {shortNumberFormat(unreadCount)}} + {unreadCount > 0 && ( +
+ +
+ )}