StatusActionCounter: use shortNumberFormat

This commit is contained in:
Alex Gleason 2022-04-01 17:45:09 -05:00
parent 3fe21ce268
commit c59ff4e822
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import React from 'react';
import { Link } from 'react-router-dom'; import { Link } from 'react-router-dom';
import { IconButton, Text } from 'soapbox/components/ui'; import { IconButton, Text } from 'soapbox/components/ui';
import { shortNumberFormat } from 'soapbox/utils/numbers';
interface IStatusActionCounter { interface IStatusActionCounter {
count: number, count: number,
@ -23,7 +24,7 @@ const StatusActionCounter: React.FC<IStatusActionCounter> = ({ to = '#', onClick
return ( return (
<Link to={to} onClick={handleClick}> <Link to={to} onClick={handleClick}>
<Text size='xs' theme='muted'>{count}</Text> <Text size='xs' theme='muted'>{shortNumberFormat(count)}</Text>
</Link> </Link>
); );
}; };