diff --git a/src/screens/Profile/ProfileFollowers.tsx b/src/screens/Profile/ProfileFollowers.tsx index ec31e77af1..25c2adb186 100644 --- a/src/screens/Profile/ProfileFollowers.tsx +++ b/src/screens/Profile/ProfileFollowers.tsx @@ -1,6 +1,5 @@ import React from 'react' -import {Trans} from '@lingui/macro' -import {useLingui} from '@lingui/react' +import {Plural} from '@lingui/macro' import {useFocusEffect} from '@react-navigation/native' import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types' @@ -15,7 +14,6 @@ type Props = NativeStackScreenProps export const ProfileFollowersScreen = ({route}: Props) => { const {name} = route.params const setMinimalShellMode = useSetMinimalShellMode() - const {i18n} = useLingui() const {data: resolvedDid} = useResolveDidQuery(name) const {data: profile} = useProfileQuery({ @@ -39,9 +37,11 @@ export const ProfileFollowersScreen = ({route}: Props) => { {sanitizeDisplayName(profile.displayName || profile.handle)} - - {i18n.number(profile.followersCount ?? 0)} followers - + )} diff --git a/src/screens/Profile/ProfileFollows.tsx b/src/screens/Profile/ProfileFollows.tsx index a59189329c..a0b6127958 100644 --- a/src/screens/Profile/ProfileFollows.tsx +++ b/src/screens/Profile/ProfileFollows.tsx @@ -1,6 +1,5 @@ import React from 'react' -import {Trans} from '@lingui/macro' -import {useLingui} from '@lingui/react' +import {Plural} from '@lingui/macro' import {useFocusEffect} from '@react-navigation/native' import {CommonNavigatorParams, NativeStackScreenProps} from '#/lib/routes/types' @@ -15,7 +14,6 @@ type Props = NativeStackScreenProps export const ProfileFollowsScreen = ({route}: Props) => { const {name} = route.params const setMinimalShellMode = useSetMinimalShellMode() - const {i18n} = useLingui() const {data: resolvedDid} = useResolveDidQuery(name) const {data: profile} = useProfileQuery({ @@ -39,9 +37,11 @@ export const ProfileFollowsScreen = ({route}: Props) => { {sanitizeDisplayName(profile.displayName || profile.handle)} - - {i18n.number(profile.followsCount ?? 0)} following - + )}