diff --git a/src/components/AddPlaidBankAccount.js b/src/components/AddPlaidBankAccount.js index 4725d607ec64..4739e9ed1f12 100644 --- a/src/components/AddPlaidBankAccount.js +++ b/src/components/AddPlaidBankAccount.js @@ -197,7 +197,7 @@ class AddPlaidBankAccount extends React.Component { // Plaid bank accounts view return ( - + {!_.isEmpty(this.props.text) && {this.props.text}} - + ); } } diff --git a/src/components/ReimbursementAccountLoadingIndicator.js b/src/components/ReimbursementAccountLoadingIndicator.js index c8b12eb8592d..816eb7590088 100644 --- a/src/components/ReimbursementAccountLoadingIndicator.js +++ b/src/components/ReimbursementAccountLoadingIndicator.js @@ -24,7 +24,10 @@ const propTypes = { function ReimbursementAccountLoadingIndicator(props) { return ( - + } + {this.props.isSmallScreenWidth && this.props.shouldShowOfflineIndicator && } diff --git a/src/components/ScreenWrapper/propTypes.js b/src/components/ScreenWrapper/propTypes.js index a82fb3b9e507..4e334a03013a 100644 --- a/src/components/ScreenWrapper/propTypes.js +++ b/src/components/ScreenWrapper/propTypes.js @@ -41,6 +41,9 @@ const propTypes = { ...windowDimensionsPropTypes, ...environmentPropTypes, + + /** Whether to show offline indicator */ + shouldShowOfflineIndicator: PropTypes.bool, }; const defaultProps = { @@ -53,6 +56,7 @@ const defaultProps = { keyboardAvoidingViewBehavior: 'padding', shouldEnableMaxHeight: false, shouldEnablePickerAvoiding: true, + shouldShowOfflineIndicator: true, }; export {propTypes, defaultProps}; diff --git a/src/pages/AddPersonalBankAccountPage.js b/src/pages/AddPersonalBankAccountPage.js index 8e9e067957c3..b23f706d4481 100644 --- a/src/pages/AddPersonalBankAccountPage.js +++ b/src/pages/AddPersonalBankAccountPage.js @@ -88,6 +88,7 @@ class AddPersonalBankAccountPage extends React.Component { Navigation.goBack(ROUTES.SETTINGS_WORKSPACES)} /> - + {errorText} diff --git a/src/pages/ReimbursementAccount/RequestorOnfidoStep.js b/src/pages/ReimbursementAccount/RequestorOnfidoStep.js index aad5def99518..5d91f5dae562 100644 --- a/src/pages/ReimbursementAccount/RequestorOnfidoStep.js +++ b/src/pages/ReimbursementAccount/RequestorOnfidoStep.js @@ -41,7 +41,10 @@ class RequestorOnfidoStep extends React.Component { render() { return ( - + + + Navigation.goBack(ROUTES.SETTINGS_SECURITY)} diff --git a/src/pages/settings/Security/TwoFactorAuth/SuccessPage.js b/src/pages/settings/Security/TwoFactorAuth/SuccessPage.js index a44342ea27b0..e3608b43685e 100644 --- a/src/pages/settings/Security/TwoFactorAuth/SuccessPage.js +++ b/src/pages/settings/Security/TwoFactorAuth/SuccessPage.js @@ -12,7 +12,7 @@ const defaultProps = {}; function SuccessPage(props) { return ( - + + +