From 64fa19d26df20d1842c128359a99db62f3c6a1d5 Mon Sep 17 00:00:00 2001 From: Jack Nam Date: Fri, 19 Apr 2024 16:08:39 -0700 Subject: [PATCH] Fix conflicts --- .../iou/request/step/IOURequestStepAmount.tsx | 59 +------------------ 1 file changed, 3 insertions(+), 56 deletions(-) diff --git a/src/pages/iou/request/step/IOURequestStepAmount.tsx b/src/pages/iou/request/step/IOURequestStepAmount.tsx index a116c015e86c..64cbcb6060aa 100644 --- a/src/pages/iou/request/step/IOURequestStepAmount.tsx +++ b/src/pages/iou/request/step/IOURequestStepAmount.tsx @@ -31,19 +31,8 @@ type IOURequestStepAmountOnyxProps = { /** The draft transaction that holds data to be persisted on the current transaction */ splitDraftTransaction: OnyxEntry; -<<<<<<< HEAD - /** The draft transaction object being modified in Onyx */ - draftTransaction: OnyxEntry; -======= /** The backup transaction object being modified in Onyx */ - backupTransaction: OnyxEntry; - - /** Personal details of all users */ - personalDetails: OnyxEntry; - - /** The policy which the user has access to and which the report is tied to */ - policy: OnyxEntry; ->>>>>>> c1827d8b (Merge pull request #40605 from Expensify/beaman-fixIOURequestCurrency) + backupTransaction: OnyxEntry; }; type IOURequestStepAmountProps = IOURequestStepAmountOnyxProps & @@ -59,12 +48,7 @@ function IOURequestStepAmount({ }, transaction, splitDraftTransaction, -<<<<<<< HEAD - draftTransaction, -======= backupTransaction, - skipConfirmation, ->>>>>>> c1827d8b (Merge pull request #40605 from Expensify/beaman-fixIOURequestCurrency) }: IOURequestStepAmountProps) { const {translate} = useLocalize(); const textInput = useRef(null); @@ -191,7 +175,6 @@ function IOURequestStepAmount({ IOURequestStepAmount.displayName = 'IOURequestStepAmount'; -<<<<<<< HEAD export default withWritableReportOrNotFound( withFullTransactionOrNotFound( withOnyx({ @@ -201,48 +184,12 @@ export default withWritableReportOrNotFound( return `${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`; }, }, - draftTransaction: { + backupTransaction: { key: ({route}) => { const transactionID = route.params.transactionID ?? 0; - return `${ONYXKEYS.COLLECTION.TRANSACTION_DRAFT}${transactionID}`; + return `${ONYXKEYS.COLLECTION.TRANSACTION_BACKUP}${transactionID}`; }, }, })(IOURequestStepAmount), ), ); -======= -const IOURequestStepAmountWithOnyx = withOnyx({ - splitDraftTransaction: { - key: ({route}) => { - const transactionID = route.params.transactionID ?? 0; - return `${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`; - }, - }, - backupTransaction: { - key: ({route}) => { - const transactionID = route.params.transactionID ?? 0; - return `${ONYXKEYS.COLLECTION.TRANSACTION_BACKUP}${transactionID}`; - }, - }, - skipConfirmation: { - key: ({route}) => { - const transactionID = route.params.transactionID ?? 0; - return `${ONYXKEYS.COLLECTION.SKIP_CONFIRMATION}${transactionID}`; - }, - }, - personalDetails: { - key: ONYXKEYS.PERSONAL_DETAILS_LIST, - }, - policy: { - key: ({report}) => `${ONYXKEYS.COLLECTION.POLICY}${report ? report.policyID : '0'}`, - }, -})(IOURequestStepAmount); - -const IOURequestStepAmountWithCurrentUserPersonalDetails = withCurrentUserPersonalDetails(IOURequestStepAmountWithOnyx); -// eslint-disable-next-line rulesdir/no-negated-variables -const IOURequestStepAmountWithWritableReportOrNotFound = withWritableReportOrNotFound(IOURequestStepAmountWithCurrentUserPersonalDetails); -// eslint-disable-next-line rulesdir/no-negated-variables -const IOURequestStepAmountWithFullTransactionOrNotFound = withFullTransactionOrNotFound(IOURequestStepAmountWithWritableReportOrNotFound); - -export default IOURequestStepAmountWithFullTransactionOrNotFound; ->>>>>>> c1827d8b (Merge pull request #40605 from Expensify/beaman-fixIOURequestCurrency)