From 6c948cc6d82b0ce725fef2a38df57d0a57c3e7fe Mon Sep 17 00:00:00 2001 From: Pujan Date: Tue, 12 Dec 2023 17:20:01 +0530 Subject: [PATCH] correct const tab request mappings --- src/pages/iou/MoneyRequestSelectorPage.js | 10 +++++----- src/pages/iou/steps/MoneyRequestAmountForm.js | 2 +- src/pages/iou/steps/MoneyRequestConfirmPage.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/pages/iou/MoneyRequestSelectorPage.js b/src/pages/iou/MoneyRequestSelectorPage.js index af52ea1222ed..ee4ee88d7008 100644 --- a/src/pages/iou/MoneyRequestSelectorPage.js +++ b/src/pages/iou/MoneyRequestSelectorPage.js @@ -48,7 +48,7 @@ const propTypes = { }; const defaultProps = { - selectedTab: CONST.TAB.SCAN, + selectedTab: CONST.TAB_REQUEST.SCAN, report: {}, }; @@ -100,7 +100,7 @@ function MoneyRequestSelectorPage(props) { {({safeAreaPaddingBottomStyle}) => ( @@ -121,18 +121,18 @@ function MoneyRequestSelectorPage(props) { )} > {shouldDisplayDistanceRequest && ( diff --git a/src/pages/iou/steps/MoneyRequestAmountForm.js b/src/pages/iou/steps/MoneyRequestAmountForm.js index 6317fd09aa82..a8e56f7a41e8 100644 --- a/src/pages/iou/steps/MoneyRequestAmountForm.js +++ b/src/pages/iou/steps/MoneyRequestAmountForm.js @@ -46,7 +46,7 @@ const defaultProps = { currency: CONST.CURRENCY.USD, forwardedRef: null, isEditing: false, - selectedTab: CONST.TAB.MANUAL, + selectedTab: CONST.TAB_REQUEST.MANUAL, }; /** diff --git a/src/pages/iou/steps/MoneyRequestConfirmPage.js b/src/pages/iou/steps/MoneyRequestConfirmPage.js index d6000e4e48cc..03ebb9bdb562 100644 --- a/src/pages/iou/steps/MoneyRequestConfirmPage.js +++ b/src/pages/iou/steps/MoneyRequestConfirmPage.js @@ -77,7 +77,7 @@ function MoneyRequestConfirmPage(props) { [props.iou.participants, personalDetails], ); const isPolicyExpenseChat = useMemo(() => ReportUtils.isPolicyExpenseChat(ReportUtils.getRootParentReport(props.report)), [props.report]); - const isManualRequestDM = props.selectedTab === CONST.TAB.MANUAL && iouType === CONST.IOU.TYPE.REQUEST; + const isManualRequestDM = props.selectedTab === CONST.TAB_REQUEST.MANUAL && iouType === CONST.IOU.TYPE.REQUEST; useEffect(() => { const policyExpenseChat = _.find(participants, (participant) => participant.isPolicyExpenseChat);