misc: switch to FormattedNumber

This commit is contained in:
Xyphyn committed 2023-08-12 10:20:07 -07:00
1 parent ddf4ade717
commit d13b1be332
1 file changed
+2 -10
@@ -56,19 +56,11 @@
<div class="flex flex-row gap-3 items-center"> <div class="flex flex-row gap-3 items-center">
<div class="flex flex-row gap-1 items-center"> <div class="flex flex-row gap-1 items-center">
<Icon src={UserGroup} width={16} mini /> <Icon src={UserGroup} width={16} mini />
<span> <FormattedNumber number={community.counts.subscribers} />
{Intl.NumberFormat('en', { notation: 'compact' }).format(
community.counts.subscribers
)}
</span>
</div> </div>
<div class="flex flex-row gap-1 items-center"> <div class="flex flex-row gap-1 items-center">
<Icon src={PencilSquare} mini width={16} /> <Icon src={PencilSquare} mini width={16} />
<span> <FormattedNumber number={community.counts.posts} />
{Intl.NumberFormat('en', { notation: 'compact' }).format(
community.counts.posts
)}
</span>
</div> </div>
<div class="flex flex-row gap-1 items-center"> <div class="flex flex-row gap-1 items-center">
<Icon src={ChatBubbleOvalLeftEllipsis} mini width={16} /> <Icon src={ChatBubbleOvalLeftEllipsis} mini width={16} />