diff --git a/src/components/StarterPack/ProfileStarterPacks.tsx b/src/components/StarterPack/ProfileStarterPacks.tsx index 50e22147ff..11165d6765 100644 --- a/src/components/StarterPack/ProfileStarterPacks.tsx +++ b/src/components/StarterPack/ProfileStarterPacks.tsx @@ -8,9 +8,7 @@ import { type ViewStyle, } from 'react-native' import {type AppBskyGraphDefs} from '@atproto/api' -import {msg} from '@lingui/core/macro' -import {useLingui} from '@lingui/react' -import {Trans} from '@lingui/react/macro' +import {Trans, useLingui} from '@lingui/react/macro' import {useNavigation} from '@react-navigation/native' import {useGenerateStarterPackMutation} from '#/lib/generate-starterpack' @@ -91,7 +89,7 @@ export function ProfileStarterPacks({ const {isTabletOrDesktop} = useWebMediaQueries() const items = data?.pages.flatMap(page => page.starterPacks) - const {_} = useLingui() + const {t: l} = useLingui() const EmptyComponent = useCallback(() => { if (emptyStateMessage || emptyStateButton || emptyStateIcon) { @@ -102,9 +100,7 @@ export function ProfileStarterPacks({ iconSize="3xl" message={ emptyStateMessage ?? - _( - msg`Starter packs let you share your favorite feeds and people with your friends.`, - ) + l`Starter packs let you share your favorite feeds and people with your friends.` } button={emptyStateButton} /> @@ -112,7 +108,7 @@ export function ProfileStarterPacks({ ) } return - }, [_, emptyStateMessage, emptyStateButton, emptyStateIcon]) + }, [l, emptyStateMessage, emptyStateButton, emptyStateIcon]) useImperativeHandle(ref, () => ({ scrollToTop: () => {}, @@ -169,13 +165,13 @@ export function ProfileStarterPacks({ ) }, [ - _, + l, data, items?.length, isMe, @@ -214,7 +210,7 @@ export function ProfileStarterPacks({ } function CreateAnother({style}: {style?: StyleProp}) { - const {_} = useLingui() + const {t: l} = useLingui() const t = useTheme() const navigation = useNavigation() @@ -229,7 +225,7 @@ function CreateAnother({style}: {style?: StyleProp}) { style, ]}> - @@ -371,12 +366,12 @@ function Empty() { { navigation.navigate('StarterPackWizard', {}) }} @@ -385,21 +380,17 @@ function Empty() { {}} showCancel={false} /> )