Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Edits to CICO success screen #168

Merged
merged 1 commit into from
Mar 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/mobile/locales/en-US/fiatExchangeFlow.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
"celoDeposit": "CELO Purchase",
"cUsdDeposit": "cUSD Purchase",
"cicoSuccess": {
"title": "Transaction started!",
"bodyWithProvider": "{{provider}} is processing your order. You should receive your funds within 1-2 days.",
"bodyWithoutProvider": "The service provider is processing your order. You should receive your funds within 1-2 days."
"title": "Order submitted!",
"bodyWithProvider": "{{provider}} is processing your order. You should receive your funds within a couple of days.",
"bodyWithoutProvider": "The service provider is processing your order. You should receive your funds within a couple of days."
},
"restrictedRegion": "Limited support in region"
}
43 changes: 17 additions & 26 deletions packages/mobile/src/fiatExchanges/CashInSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,25 +21,23 @@ function CashInSuccessScreen({ route }: Props) {

return (
<View style={styles.container}>
<View style={styles.imageContainer}>
<Image source={fiatExchange} style={styles.image} resizeMode={'contain'} />
<Text style={styles.title}>{t('cicoSuccess.title')}</Text>
</View>
<View style={styles.content}>
<Image source={fiatExchange} resizeMode={'contain'} />
<Text style={styles.title}>{t('cicoSuccess.title')}</Text>
<Text style={styles.contentText}>
{provider
? t('cicoSuccess.bodyWithProvider', { provider })
: t('cicoSuccess.bodyWithoutProvider')}
</Text>
<View style={styles.buttonContainer}>
<Button
style={styles.button}
text={t('global:continue')}
accessibilityLabel={t('global:continue')}
onPress={navigateHome}
testID={'SuccessContinue'}
/>
</View>
</View>
<View style={styles.buttonContainer}>
<Button
style={styles.button}
text={t('global:continue')}
accessibilityLabel={t('global:continue')}
onPress={navigateHome}
testID={'SuccessContinue'}
/>
</View>
</View>
)
Expand All @@ -57,33 +55,26 @@ const styles = StyleSheet.create({
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'center',
},
imageContainer: {
flex: 1,
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
},
image: {
marginBottom: 30,
padding: 32,
},
title: {
...fontStyles.large500,
paddingTop: 8,
paddingBottom: 16,
},
content: {
flex: 0,
flex: 1,
padding: 16,
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
alignItems: 'stretch',
justifyContent: 'center',
alignItems: 'center',
},
contentText: {
...fontStyles.regular,
textAlign: 'center',
},
buttonContainer: {
paddingTop: 16,
flexDirection: 'row',
},
button: {
Expand Down
Loading