diff --git a/src/pages/AddPersonalBankAccountPage.js b/src/pages/AddPersonalBankAccountPage.js index dc5245702c88..b7cc498da2f4 100644 --- a/src/pages/AddPersonalBankAccountPage.js +++ b/src/pages/AddPersonalBankAccountPage.js @@ -13,6 +13,7 @@ import AddPlaidBankAccount from '../components/AddPlaidBankAccount'; import getPlaidOAuthReceivedRedirectURI from '../libs/getPlaidOAuthReceivedRedirectURI'; import compose from '../libs/compose'; import ONYXKEYS from '../ONYXKEYS'; +import KeyboardAvoidingView from '../components/KeyboardAvoidingView'; import Text from '../components/Text'; import styles from '../styles/styles'; import * as Illustrations from '../components/Icon/Illustrations'; @@ -175,33 +176,17 @@ class AddPersonalBankAccountPage extends React.Component { receivedRedirectURI={getPlaidOAuthReceivedRedirectURI()} /> {!_.isUndefined(this.state.selectedPlaidBankAccount) && ( - - this.setState({password: text})} - errorText={this.getErrorText('password')} - hasError={this.getErrors().password} - /> - + )} - - {!_.isUndefined(this.state.selectedPlaidBankAccount) && ( - - )} - - )} + + )} + ); } diff --git a/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js b/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js index 56f39910e421..5c186d40087a 100644 --- a/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js +++ b/src/pages/settings/Payments/PaymentsPage/BasePaymentsPage.js @@ -33,7 +33,6 @@ import KYCWall from '../../../../components/KYCWall'; import {propTypes, defaultProps} from './paymentsPagePropTypes'; import {withNetwork} from '../../../../components/OnyxProvider'; import * as PaymentUtils from '../../../../libs/PaymentUtils'; -import OfflineIndicator from '../../../../components/OfflineIndicator'; class BasePaymentsPage extends React.Component { constructor(props) { diff --git a/src/pages/settings/Payments/TransferBalancePage.js b/src/pages/settings/Payments/TransferBalancePage.js index b1699f367e8f..0df6461cc9c2 100644 --- a/src/pages/settings/Payments/TransferBalancePage.js +++ b/src/pages/settings/Payments/TransferBalancePage.js @@ -11,6 +11,7 @@ import styles from '../../../styles/styles'; import withLocalize, {withLocalizePropTypes} from '../../../components/withLocalize'; import {withNetwork} from '../../../components/OnyxProvider'; import compose from '../../../libs/compose'; +import KeyboardAvoidingView from '../../../components/KeyboardAvoidingView'; import * as Expensicons from '../../../components/Icon/Expensicons'; import * as Illustrations from '../../../components/Icon/Illustrations'; import Icon from '../../../components/Icon'; @@ -207,72 +208,54 @@ class TransferBalancePage extends React.Component { return ( - Navigation.goBack()} - onCloseButtonPress={() => Navigation.dismissModal(true)} - /> - - - - - - {_.map(this.paymentTypes, paymentType => ( - this.navigateToChooseTransferAccount(paymentType.type)} - /> - ))} + + Navigation.goBack()} + onCloseButtonPress={() => Navigation.dismissModal(true)} + /> + + - - {this.props.translate('transferAmountPage.whichAccount')} - - {Boolean(selectedAccount) - && ( - this.navigateToChooseTransferAccount(selectedAccount.accountType)} - /> - )} - + + + {_.map(this.paymentTypes, paymentType => ( + this.navigateToChooseTransferAccount(paymentType.type)} + /> + ))} + - {this.props.translate('transferAmountPage.fee')} + {this.props.translate('transferAmountPage.whichAccount')} - - {this.props.numberFormat( - calculatedFee / 100, - {style: 'currency', currency: 'USD'}, + {Boolean(selectedAccount) + && ( + this.navigateToChooseTransferAccount(selectedAccount.accountType)} + /> )}