From ed824786d97ef0b46fe4ef9e2e4028e51687d1c0 Mon Sep 17 00:00:00 2001 From: Abdelrahman Khattab Date: Sat, 17 Feb 2024 18:06:31 +0200 Subject: [PATCH] Hide the double offline indicator in bank steps --- .../BankInfo/substeps/Confirmation.tsx | 87 +++++----- .../ConfirmationUBO.tsx | 151 +++++++++-------- .../substeps/CompanyOwnersListUBO.tsx | 83 +++++---- .../PersonalInfo/substeps/Confirmation.tsx | 157 +++++++++--------- 4 files changed, 233 insertions(+), 245 deletions(-) diff --git a/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx b/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx index f2070e38b942..4105a5f03f36 100644 --- a/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx +++ b/src/pages/ReimbursementAccount/BankInfo/substeps/Confirmation.tsx @@ -5,7 +5,6 @@ import {withOnyx} from 'react-native-onyx'; import Button from '@components/Button'; import DotIndicatorMessage from '@components/DotIndicatorMessage'; import MenuItemWithTopDescription from '@components/MenuItemWithTopDescription'; -import ScreenWrapper from '@components/ScreenWrapper'; import Text from '@components/Text'; import useLocalize from '@hooks/useLocalize'; import type {SubStepProps} from '@hooks/useSubStep/types'; @@ -46,57 +45,55 @@ function Confirmation({reimbursementAccount, reimbursementAccountDraft, onNext, }; return ( - - - {translate('bankAccount.letsDoubleCheck')} - {translate('bankAccount.thisBankAccount')} - {setupType === CONST.BANK_ACCOUNT.SUBSTEP.MANUAL && ( - - - - - - )} - {setupType === CONST.BANK_ACCOUNT.SUBSTEP.PLAID && ( + {translate('bankAccount.letsDoubleCheck')} + {translate('bankAccount.thisBankAccount')} + {setupType === CONST.BANK_ACCOUNT.SUBSTEP.MANUAL && ( + - )} - - {error && error.length > 0 && ( - - )} -