TimelineQueueButtonHeader: use shortNumberFormat

This commit is contained in:
Alex Gleason 2022-06-02 20:59:34 -05:00
parent 973d3064b5
commit 606d6297a8
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import { useIntl, MessageDescriptor } from 'react-intl';
import Icon from 'soapbox/components/icon';
import { Text } from 'soapbox/components/ui';
import { useAppSelector, useSettings } from 'soapbox/hooks';
import { shortNumberFormat } from 'soapbox/utils/numbers';
interface ITimelineQueueButtonHeader {
onClick: () => void,
@ -73,7 +74,7 @@ const TimelineQueueButtonHeader: React.FC<ITimelineQueueButtonHeader> = ({
{(count > 0) && (
<Text theme='inherit' size='sm'>
{intl.formatMessage(message, { count })}
{intl.formatMessage(message, { count: shortNumberFormat(count) })}
</Text>
)}
</a>