-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Revert 56838 #65193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert 56838 #65193
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| import useResponsiveLayout from '@hooks/useResponsiveLayout'; | ||
| import Navigation from '@libs/Navigation/Navigation'; | ||
| import {isLinkedTransactionHeld} from '@libs/ReportActionsUtils'; | ||
| import {approveMoneyRequest, payMoneyRequest} from '@userActions/IOU'; | ||
| import * as IOU from '@userActions/IOU'; | ||
|
Check failure on line 7 in src/components/ProcessMoneyReportHoldMenu.tsx
|
||
| import CONST from '@src/CONST'; | ||
| import ROUTES from '@src/ROUTES'; | ||
| import type * as OnyxTypes from '@src/types/onyx'; | ||
|
|
@@ -69,15 +69,15 @@ | |
| if (startAnimation) { | ||
| startAnimation(); | ||
| } | ||
| approveMoneyRequest(moneyRequestReport, full); | ||
| if (!full && isLinkedTransactionHeld(Navigation.getTopmostReportActionId(), moneyRequestReport?.reportID)) { | ||
| Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(moneyRequestReport?.reportID)); | ||
| IOU.approveMoneyRequest(moneyRequestReport, full); | ||
| if (!full && isLinkedTransactionHeld(Navigation.getTopmostReportActionId() ?? '-1', moneyRequestReport?.reportID ?? '')) { | ||
|
Check failure on line 73 in src/components/ProcessMoneyReportHoldMenu.tsx
|
||
| Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(moneyRequestReport?.reportID ?? '')); | ||
|
Check failure on line 74 in src/components/ProcessMoneyReportHoldMenu.tsx
|
||
| } | ||
| } else if (chatReport && paymentType) { | ||
| if (startAnimation) { | ||
| startAnimation(); | ||
| } | ||
| payMoneyRequest(paymentType, chatReport, moneyRequestReport, undefined, full); | ||
| IOU.payMoneyRequest(paymentType, chatReport, moneyRequestReport, full); | ||
| } | ||
| onClose(); | ||
| }; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a conflict here. It seems like we just moved
anchorAlignmentaround on main https://github.com/Expensify/App/blob/main/src/components/ButtonWithDropdownMenu/index.tsx#L237-L242