Update Lists.tsx
parent
6d57094c6a
commit
7a0bf7266a
|
@ -6,7 +6,7 @@ import {Loader} from '#/components/Loader'
|
||||||
import {Trans, msg} from '@lingui/macro'
|
import {Trans, msg} from '@lingui/macro'
|
||||||
import {useLingui} from '@lingui/react'
|
import {useLingui} from '@lingui/react'
|
||||||
import {cleanError} from 'lib/strings/errors'
|
import {cleanError} from 'lib/strings/errors'
|
||||||
import {Button} from '#/components/Button'
|
import {Button, ButtonText} from '#/components/Button'
|
||||||
import {Text} from '#/components/Typography'
|
import {Text} from '#/components/Typography'
|
||||||
import {StackActions} from '@react-navigation/native'
|
import {StackActions} from '@react-navigation/native'
|
||||||
import {router} from '#/routes'
|
import {router} from '#/routes'
|
||||||
|
@ -223,7 +223,7 @@ export function ListMaybePlaceholder({
|
||||||
<Button
|
<Button
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color="primary"
|
color="primary"
|
||||||
label={_(msg`Click here`)}
|
label={_(msg`Click here to retry`)}
|
||||||
onPress={onRetry}
|
onPress={onRetry}
|
||||||
size="large"
|
size="large"
|
||||||
style={[
|
style={[
|
||||||
|
@ -231,17 +231,21 @@ export function ListMaybePlaceholder({
|
||||||
a.overflow_hidden,
|
a.overflow_hidden,
|
||||||
{paddingVertical: 10},
|
{paddingVertical: 10},
|
||||||
]}>
|
]}>
|
||||||
<Trans>Retry</Trans>
|
<ButtonText>
|
||||||
|
<Trans>Retry</Trans>
|
||||||
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
variant="solid"
|
variant="solid"
|
||||||
color={isError && onRetry ? 'secondary' : 'primary'}
|
color={isError && onRetry ? 'secondary' : 'primary'}
|
||||||
label={_(msg`Click here`)}
|
label={_(msg`Click here to go back`)}
|
||||||
onPress={onGoBack}
|
onPress={onGoBack}
|
||||||
size="large"
|
size="large"
|
||||||
style={[a.rounded_sm, a.overflow_hidden, {paddingVertical: 10}]}>
|
style={[a.rounded_sm, a.overflow_hidden, {paddingVertical: 10}]}>
|
||||||
<Trans>Go Back</Trans>
|
<ButtonText>
|
||||||
|
<Trans>Go Back</Trans>
|
||||||
|
</ButtonText>
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
</>
|
</>
|
||||||
|
|
Loading…
Reference in New Issue