Skip to content

Commit

Permalink
Merge pull request #7889 from Expensify/ckt_kyc_failedModal
Browse files Browse the repository at this point in the history
Failed KYC message
  • Loading branch information
nkuoch authored Mar 2, 2022
2 parents 75afd4a + d07b33c commit d6e64b3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/languages/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ export default {
legalFirstNameLabel: 'Legal first name',
legalMiddleNameLabel: 'Legal middle name',
legalLastNameLabel: 'Legal last name',
failedKYCTextBefore: 'We weren\'t able to successfully verify your identity. Please try again later and reach out to ',
failedKYCTextAfter: ' if you have any questions.',
},
termsStep: {
headerTitle: 'Terms and fees',
Expand Down
2 changes: 2 additions & 0 deletions src/languages/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ export default {
legalFirstNameLabel: 'Primer nombre legal',
legalMiddleNameLabel: 'Segundo nombre legal',
legalLastNameLabel: 'Apellido legal',
failedKYCTextBefore: 'No pudimos verificar correctamente su identidad. Vuelva a intentarlo más tarde y comuníquese con ',
failedKYCTextAfter: ' si tiene alguna pregunta.',
},
termsStep: {
headerTitle: 'Condiciones y tarifas',
Expand Down
32 changes: 32 additions & 0 deletions src/pages/EnablePayments/FailedKYC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import React from 'react';
import {
View,
} from 'react-native';
import CONST from '../../CONST';
import Text from '../../components/Text';
import TextLink from '../../components/TextLink';
import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize';
import styles from '../../styles/styles';

const propTypes = {
...withLocalizePropTypes,
};

const FailedKYC = props => (
<View style={[styles.flex1]}>
<View style={[styles.ph5]}>
<Text style={styles.mb3}>
{props.translate('additionalDetailsStep.failedKYCTextBefore')}
<TextLink href={`mailto:${CONST.EMAIL.CONCIERGE}`} style={[styles.link]}>
{CONST.EMAIL.CONCIERGE}
</TextLink>
{props.translate('additionalDetailsStep.failedKYCTextAfter')}
</Text>
</View>
</View>
);

FailedKYC.propTypes = propTypes;
FailedKYC.displayName = 'FailedKYC';

export default withLocalize(FailedKYC);

0 comments on commit d6e64b3

Please sign in to comment.