From 68e5ce63db6db166ab623d0e686e6665f49ac705 Mon Sep 17 00:00:00 2001 From: Rajat Parashar Date: Wed, 1 Dec 2021 16:22:29 +0530 Subject: [PATCH] fis: remaining pages for workspace --- .../ReimbursementAccount/BankAccountStep.js | 100 +++++++++--------- .../workspace/WorkspaceBankAccountPage.js | 67 ++++++------ 2 files changed, 83 insertions(+), 84 deletions(-) diff --git a/src/pages/ReimbursementAccount/BankAccountStep.js b/src/pages/ReimbursementAccount/BankAccountStep.js index 9b9411ded77f..1429687ccc1b 100644 --- a/src/pages/ReimbursementAccount/BankAccountStep.js +++ b/src/pages/ReimbursementAccount/BankAccountStep.js @@ -1,6 +1,6 @@ import _ from 'underscore'; import React from 'react'; -import {View, Image} from 'react-native'; +import {View, Image, ScrollView} from 'react-native'; import {withOnyx} from 'react-native-onyx'; import HeaderWithCloseButton from '../../components/HeaderWithCloseButton'; import MenuItem from '../../components/MenuItem'; @@ -176,62 +176,60 @@ class BankAccountStep extends React.Component { shouldShowBackButton /> {!subStep && ( - <> - - - - {this.props.translate('bankAccount.toGetStarted')} + + + + {this.props.translate('bankAccount.toGetStarted')} + + BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID)} + disabled={this.props.isPlaidDisabled || !this.props.user.validated} + shouldShowRightIcon + /> + {this.props.isPlaidDisabled && ( + + {this.props.translate('bankAccount.error.tooManyAttempts')} - BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID)} - disabled={this.props.isPlaidDisabled || !this.props.user.validated} - shouldShowRightIcon - /> - {this.props.isPlaidDisabled && ( - - {this.props.translate('bankAccount.error.tooManyAttempts')} + )} + BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL)} + shouldShowRightIcon + /> + {!this.props.user.validated && ( + + + - )} - BankAccounts.setBankAccountSubStep(CONST.BANK_ACCOUNT.SETUP_TYPE.MANUAL)} - shouldShowRightIcon - /> - {!this.props.user.validated && ( - - - - - - {this.props.translate('bankAccount.validateAccountError')} - - - )} - - - {this.props.translate('common.privacy')} + + {this.props.translate('bankAccount.validateAccountError')} + + + )} + + + {this.props.translate('common.privacy')} + + + + {this.props.translate('bankAccount.yourDataIsSecure')} - - - {this.props.translate('bankAccount.yourDataIsSecure')} - - - - + + - + )} {subStep === CONST.BANK_ACCOUNT.SETUP_TYPE.PLAID && ( - Navigation.navigate(ROUTES.getWorkspaceInitialRoute(this.props.route.params.policyID))} - shouldShowBackButton - /> - - - {this.props.translate('workspace.bankAccount.youreAlmostDone')} - - - - + + {() => ( + <> + + + {this.props.translate('workspace.bankAccount.youreAlmostDone')} + + + + + )} + ); } }