diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-06-19 22:21:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 00:21:02 +0300 |
commit | 22c5aa4da4e8835f2694e1590c27b2e5783d3cc4 (patch) | |
tree | 1d82c9b28a9344381b62d14201b6269f8d8337fc /src/view/com/util/post-ctrls/RepostButton.tsx | |
parent | ca17cf276ff93f8d4014b639c99938d89d9e951f (diff) | |
download | voidsky-22c5aa4da4e8835f2694e1590c27b2e5783d3cc4.tar.zst |
Truncate post metrics and fix truncation on native (#4575)
* truncate post counts * add numberformat polyfill * Fix perf * Simplify type shenanigans * Bump versions to remove dupes --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/view/com/util/post-ctrls/RepostButton.tsx')
-rw-r--r-- | src/view/com/util/post-ctrls/RepostButton.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/com/util/post-ctrls/RepostButton.tsx b/src/view/com/util/post-ctrls/RepostButton.tsx index 81e89d42d..10bc369b8 100644 --- a/src/view/com/util/post-ctrls/RepostButton.tsx +++ b/src/view/com/util/post-ctrls/RepostButton.tsx @@ -12,6 +12,7 @@ import * as Dialog from '#/components/Dialog' import {CloseQuote_Stroke2_Corner1_Rounded as Quote} from '#/components/icons/Quote' import {Repost_Stroke2_Corner2_Rounded as Repost} from '#/components/icons/Repost' import {Text} from '#/components/Typography' +import {formatCount} from '../numeric/format' interface Props { isReposted: boolean @@ -76,7 +77,7 @@ let RepostButton = ({ big ? a.text_md : {fontSize: 15}, isReposted && a.font_bold, ]}> - {repostCount} + {formatCount(repostCount)} </Text> ) : undefined} </Button> |