diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-01 11:31:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 13:31:00 -0500 |
commit | 0ec98c77ef65ff74e83b314d8eed9ef9b07d47d3 (patch) | |
tree | 744eaf6c0761499e3b1321e874a80c63d3194fc5 /src/view/shell/Drawer.tsx | |
parent | 7171d0404ed61fbfb6d593aae3030834ad885072 (diff) | |
download | voidsky-0ec98c77ef65ff74e83b314d8eed9ef9b07d47d3.tar.zst |
Format large numbers (#556)
Diffstat (limited to 'src/view/shell/Drawer.tsx')
-rw-r--r-- | src/view/shell/Drawer.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/shell/Drawer.tsx b/src/view/shell/Drawer.tsx index 7128d4213..81ee005c8 100644 --- a/src/view/shell/Drawer.tsx +++ b/src/view/shell/Drawer.tsx @@ -39,6 +39,7 @@ import {getTabState, TabState} from 'lib/routes/helpers' import {NavigationProp} from 'lib/routes/types' import {useNavigationTabState} from 'lib/hooks/useNavigationTabState' import {isWeb} from 'platform/detection' +import {formatCount} from 'view/com/util/numeric/format' export const DrawerContent = observer(() => { const theme = useTheme() @@ -133,11 +134,11 @@ export const DrawerContent = observer(() => { type="xl" style={[pal.textLight, styles.profileCardFollowers]}> <Text type="xl-medium" style={pal.text}> - {store.me.followersCount || 0} + {formatCount(store.me.followersCount ?? 0)} </Text>{' '} {pluralize(store.me.followersCount || 0, 'follower')} ·{' '} <Text type="xl-medium" style={pal.text}> - {store.me.followsCount || 0} + {formatCount(store.me.followsCount ?? 0)} </Text>{' '} following </Text> |