From d0438b6b28ff87628f737f8dd26bace8916ef59c Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Sat, 2 Mar 2024 13:26:21 +0900 Subject: Update Lists.tsx --- src/components/Lists.tsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/components/Lists.tsx') diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index 12a935807..9778545d2 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -2,7 +2,8 @@ import React from 'react' import {atoms as a, useBreakpoints, useTheme} from '#/alf' import {View} from 'react-native' import {Loader} from '#/components/Loader' -import {Trans} from '@lingui/macro' +import {Trans, msg} from '@lingui/macro' +import {useLingui} from '@lingui/react' import {cleanError} from 'lib/strings/errors' import {Button} from '#/components/Button' import {Text} from '#/components/Typography' @@ -58,6 +59,7 @@ function ListFooterMaybeError({ onRetry?: () => Promise }) { const t = useTheme() + const {_} = useLingui() if (!isError) return null @@ -83,7 +85,7 @@ function ListFooterMaybeError({ @@ -144,6 +146,7 @@ export function ListMaybePlaceholder({ const navigation = useNavigation() const t = useTheme() const {gtMobile} = useBreakpoints() + const {_} = useLingui() const canGoBack = navigation.canGoBack() const onGoBack = React.useCallback(() => { @@ -218,7 +221,7 @@ export function ListMaybePlaceholder({ )} -- cgit 1.4.1 From 7a0bf7266a5a871fafb08194d794318fb02ac999 Mon Sep 17 00:00:00 2001 From: Minseo Lee Date: Sat, 16 Mar 2024 16:48:58 +0900 Subject: Update Lists.tsx --- src/components/Lists.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/components/Lists.tsx') diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx index 8a6dfdc7c..f506f52ce 100644 --- a/src/components/Lists.tsx +++ b/src/components/Lists.tsx @@ -6,7 +6,7 @@ import {Loader} from '#/components/Loader' import {Trans, msg} from '@lingui/macro' import {useLingui} from '@lingui/react' import {cleanError} from 'lib/strings/errors' -import {Button} from '#/components/Button' +import {Button, ButtonText} from '#/components/Button' import {Text} from '#/components/Typography' import {StackActions} from '@react-navigation/native' import {router} from '#/routes' @@ -223,7 +223,7 @@ export function ListMaybePlaceholder({ )} -- cgit 1.4.1