-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4246 from Expensify/rocio-VBAVerification
Show verification modal instead of redirecting to concierge
- Loading branch information
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import React from 'react'; | ||
import {Image, View} from 'react-native'; | ||
import styles from '../../styles/styles'; | ||
import withLocalize, {withLocalizePropTypes} from '../../components/withLocalize'; | ||
import {navigateToConciergeChat} from '../../libs/actions/Report'; | ||
import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; | ||
import Navigation from '../../libs/Navigation/Navigation'; | ||
import Text from '../../components/Text'; | ||
import CONST from '../../CONST'; | ||
import TextLink from '../../components/TextLink'; | ||
import compose from '../../libs/compose'; | ||
|
||
const propTypes = { | ||
...withLocalizePropTypes, | ||
}; | ||
|
||
const EnableStep = ({translate}) => { | ||
const verifyingUrl = `${CONST.CLOUDFRONT_URL}/images/icons/emptystates/emptystate_reviewing.gif`; | ||
return ( | ||
<View style={[styles.flex1, styles.justifyContentBetween]}> | ||
<HeaderWithCloseButton | ||
title={translate('validationStep.headerTitle')} | ||
onCloseButtonPress={Navigation.dismissModal} | ||
/> | ||
<View style={[styles.flex1]}> | ||
<Image | ||
source={{uri: verifyingUrl}} | ||
style={[styles.workspaceInviteWelcome]} | ||
resizeMode="center" | ||
/> | ||
<Text style={[styles.mh5, styles.mb5]}> | ||
{translate('validationStep.reviewingInfo')} | ||
<TextLink | ||
onPress={() => { | ||
// There are two modals that must be dismissed before we can reveal the Concierge | ||
// chat underneath these screens | ||
Navigation.dismissModal(); | ||
Navigation.dismissModal(); | ||
navigateToConciergeChat(); | ||
}} | ||
> | ||
{translate('common.here')} | ||
</TextLink> | ||
{translate('validationStep.forNextSteps')} | ||
</Text> | ||
</View> | ||
</View> | ||
); | ||
}; | ||
|
||
EnableStep.propTypes = propTypes; | ||
EnableStep.displayName = 'EnableStep'; | ||
|
||
export default compose( | ||
withLocalize, | ||
)(EnableStep); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters