diff options
author | Ollie H <renahlee@outlook.com> | 2023-05-08 14:02:19 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 16:02:19 -0500 |
commit | 84046f42d575d57109bf4806740569c689cab98f (patch) | |
tree | 83b51f4119a91490e28b5e313ab28c2182071efe /src/view/shell/desktop/RightNav.tsx | |
parent | 6124e5283628564b651463d7710f13096e9bd20c (diff) | |
download | voidsky-84046f42d575d57109bf4806740569c689cab98f.tar.zst |
Format count and fix type warning (#600)
Diffstat (limited to 'src/view/shell/desktop/RightNav.tsx')
-rw-r--r-- | src/view/shell/desktop/RightNav.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view/shell/desktop/RightNav.tsx b/src/view/shell/desktop/RightNav.tsx index 142f01163..d6663ce3d 100644 --- a/src/view/shell/desktop/RightNav.tsx +++ b/src/view/shell/desktop/RightNav.tsx @@ -12,6 +12,7 @@ import {useStores} from 'state/index' import {pluralize} from 'lib/strings/helpers' import {useColorSchemeStyle} from 'lib/hooks/useColorSchemeStyle' import {MoonIcon} from 'lib/icons' +import {formatCount} from 'view/com/util/numeric/format' export const DesktopRightNav = observer(function DesktopRightNav() { const store = useStores() @@ -112,7 +113,7 @@ const InviteCodes = observer(() => { <Text type="md-medium" style={store.me.invitesAvailable > 0 ? pal.link : pal.textLight}> - {store.me.invitesAvailable} invite{' '} + {formatCount(store.me.invitesAvailable)} invite{' '} {pluralize(store.me.invitesAvailable, 'code')} available </Text> </TouchableOpacity> |