about summary refs log tree commit diff
path: root/src/components/Lists.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-03-19 12:29:22 -0700
committerPaul Frazee <pfrazee@gmail.com>2024-03-19 12:29:22 -0700
commit14982b93938c5b4141408e9b0887b261469eed4f (patch)
tree3c789effa60a94dc524a530ddf1e2b8950942906 /src/components/Lists.tsx
parentdac73cbeea3c346c255eec15d08bd9c585263bec (diff)
parentad43d594c9f63fc85e6927d23cd3f3f21406b002 (diff)
downloadvoidsky-14982b93938c5b4141408e9b0887b261469eed4f.tar.zst
Merge branch 'patch-3' of https://github.com/quiple/social-app into quiple-patch-3
Diffstat (limited to 'src/components/Lists.tsx')
-rw-r--r--src/components/Lists.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx
index a74484b71..8e4a58007 100644
--- a/src/components/Lists.tsx
+++ b/src/components/Lists.tsx
@@ -2,10 +2,10 @@ import React from 'react'
 import {atoms as a, useBreakpoints, useTheme} from '#/alf'
 import {View} from 'react-native'
 import {useLingui} from '@lingui/react'
+import {Trans, msg} from '@lingui/macro'
 
 import {CenteredView} from 'view/com/util/Views'
 import {Loader} from '#/components/Loader'
-import {msg, Trans} from '@lingui/macro'
 import {cleanError} from 'lib/strings/errors'
 import {Button} from '#/components/Button'
 import {Text} from '#/components/Typography'
@@ -59,6 +59,7 @@ function ListFooterMaybeError({
   onRetry?: () => Promise<unknown>
 }) {
   const t = useTheme()
+  const {_} = useLingui()
 
   if (!isError) return null
 
@@ -84,7 +85,7 @@ function ListFooterMaybeError({
         </Text>
         <Button
           variant="gradient"
-          label="Press to retry"
+          label={_(msg`Press to retry`)}
           style={[
             a.align_center,
             a.justify_center,
@@ -94,7 +95,7 @@ function ListFooterMaybeError({
             a.py_sm,
           ]}
           onPress={onRetry}>
-          Retry
+          <Trans>Retry</Trans>
         </Button>
       </View>
     </View>
@@ -149,6 +150,7 @@ export function ListMaybePlaceholder({
   const t = useTheme()
   const {_} = useLingui()
   const {gtMobile, gtTablet} = useBreakpoints()
+  const {_} = useLingui()
 
   if (!isLoading && isError) {
     return (