Format count and fix type warning (#600)

This commit is contained in:
Ollie H 2023-05-08 14:02:19 -07:00 committed by GitHub
parent 6124e52836
commit 84046f42d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 18 deletions

View file

@ -401,7 +401,7 @@ const ProfileHeaderLoaded = observer(
</Text>
</TouchableOpacity>
<Text type="md" style={[s.bold, pal.text]}>
{view.postsCount}{' '}
{formatCount(view.postsCount)}{' '}
<Text type="md" style={[pal.textLight]}>
{pluralize(view.postsCount, 'post')}
</Text>