@@ -22,6 +22,7 @@ import {
2222 shouldShowMarkAsDone ,
2323} from '@libs/ReportUtils' ;
2424import refreshSearchAfterReportAction from '@libs/SearchRefreshUtils' ;
25+ import showConfirmModalAfterMoreMenuDismiss from '@libs/showConfirmModalAfterMoreMenuDismiss' ;
2526import { hasAnyPendingRTERViolation as hasAnyPendingRTERViolationTransactionUtils , hasOnlyPendingCardTransactions , showPendingCardTransactionsBlockModal } from '@libs/TransactionUtils' ;
2627import { cancelPayment , markReportPaymentReceived } from '@userActions/IOU/PayMoneyRequest' ;
2728import { approveMoneyRequest , reopenReport , retractReport , submitReport , unapproveExpenseReport } from '@userActions/IOU/ReportWorkflow' ;
@@ -292,7 +293,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
292293 return ;
293294 }
294295
295- const result = await showConfirmModal ( {
296+ const result = await showConfirmModalAfterMoreMenuDismiss ( showConfirmModal , {
296297 title : translate ( 'iou.confirmPaymentReceivedModalTitle' ) ,
297298 prompt : translate ( 'iou.receivedPaymentConfirmation' ) ,
298299 confirmText : translate ( 'iou.confirmReceivedPayment' ) ,
@@ -338,7 +339,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
338339 </ Text >
339340 ) ;
340341
341- const result = await showConfirmModal ( {
342+ const result = await showConfirmModalAfterMoreMenuDismiss ( showConfirmModal , {
342343 title : translate ( 'iou.unapproveReport' ) ,
343344 prompt : unapproveWarningText ,
344345 confirmText : translate ( 'iou.unapproveReport' ) ,
@@ -360,7 +361,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
360361 icon : expensifyIcons . Clear ,
361362 sentryLabel : CONST . SENTRY_LABEL . MORE_MENU . CANCEL_PAYMENT ,
362363 onSelected : async ( ) => {
363- const result = await showConfirmModal ( {
364+ const result = await showConfirmModalAfterMoreMenuDismiss ( showConfirmModal , {
364365 title : translate ( 'iou.cancelPayment' ) ,
365366 prompt : translate ( 'iou.cancelPaymentConfirmation' ) ,
366367 confirmText : translate ( 'iou.cancelPayment' ) ,
@@ -393,7 +394,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
393394 </ Text >
394395 ) ;
395396
396- const result = await showConfirmModal ( {
397+ const result = await showConfirmModalAfterMoreMenuDismiss ( showConfirmModal , {
397398 title : translate ( 'iou.reopenReport' ) ,
398399 prompt : reopenExportedReportWarningText ,
399400 confirmText : translate ( 'iou.reopenReport' ) ,
@@ -427,7 +428,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
427428 </ Text >
428429 ) ;
429430
430- const result = await showConfirmModal ( {
431+ const result = await showConfirmModalAfterMoreMenuDismiss ( showConfirmModal , {
431432 title : translate ( 'iou.reopenReport' ) ,
432433 prompt : reopenExportedReportWarningText ,
433434 confirmText : translate ( 'iou.reopenReport' ) ,
0 commit comments