From adf23f73402493f473c7d6503593642d7fc220f0 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Tue, 5 Dec 2023 11:36:01 +0700 Subject: [PATCH] using isLoadingApp instead of isLoadingReportData --- .../ReimbursementAccountPage.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js index 1b6a188c521b..de1c02cd1dbd 100644 --- a/src/pages/ReimbursementAccount/ReimbursementAccountPage.js +++ b/src/pages/ReimbursementAccount/ReimbursementAccountPage.js @@ -56,8 +56,8 @@ const propTypes = { name: PropTypes.string, }), - /** Indicated whether the report data is loading */ - isLoadingReportData: PropTypes.bool, + /** Indicated whether the app is loading */ + isLoadingApp: PropTypes.bool, /** Holds information about the users account that is logging in */ account: PropTypes.shape({ @@ -89,7 +89,7 @@ const defaultProps = { policy: {}, plaidLinkToken: '', plaidCurrentEvent: '', - isLoadingReportData: false, + isLoadingApp: false, account: {}, session: { email: null, @@ -158,7 +158,7 @@ function getRouteForCurrentStep(currentStep) { } } -function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, policy, account, isLoadingReportData, session, plaidLinkToken, plaidCurrentEvent, reimbursementAccountDraft}) { +function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, policy, account, isLoadingApp, session, plaidLinkToken, plaidCurrentEvent, reimbursementAccountDraft}) { /** The SetupWithdrawalAccount flow allows us to continue the flow from various points depending on where the user left off. This view will refer to the achData as the single source of truth to determine which route to @@ -409,7 +409,7 @@ function ReimbursementAccountPage({reimbursementAccount, route, onfidoToken, pol ); } - const isLoading = (isLoadingReportData || account.isLoading || reimbursementAccount.isLoading) && (!plaidCurrentEvent || plaidCurrentEvent === CONST.BANK_ACCOUNT.PLAID.EVENTS_NAME.EXIT); + const isLoading = (isLoadingApp || account.isLoading || reimbursementAccount.isLoading) && (!plaidCurrentEvent || plaidCurrentEvent === CONST.BANK_ACCOUNT.PLAID.EVENTS_NAME.EXIT); const shouldShowOfflineLoader = !( isOffline && _.contains([CONST.BANK_ACCOUNT.STEP.BANK_ACCOUNT, CONST.BANK_ACCOUNT.STEP.COMPANY, CONST.BANK_ACCOUNT.STEP.REQUESTOR, CONST.BANK_ACCOUNT.STEP.ACH_CONTRACT], currentStep) ); @@ -565,8 +565,8 @@ export default compose( onfidoToken: { key: ONYXKEYS.ONFIDO_TOKEN, }, - isLoadingReportData: { - key: ONYXKEYS.IS_LOADING_REPORT_DATA, + isLoadingApp: { + key: ONYXKEYS.IS_LOADING_APP, }, account: { key: ONYXKEYS.ACCOUNT,