@@ -84,7 +84,6 @@ function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportIn
8484 const { isOffline} = useNetwork ( ) ;
8585 const { isBetaEnabled} = usePermissions ( ) ;
8686 const isASAPSubmitBetaEnabled = isBetaEnabled ( CONST . BETAS . ASAP_SUBMIT ) ;
87- const isBulkSubmitApprovePayBetaEnabled = isBetaEnabled ( CONST . BETAS . BULK_SUBMIT_APPROVE_PAY ) ;
8887 const activeAdminPolicies = useActiveAdminPolicies ( ) ;
8988 const lastWorkspaceNumber = useLastWorkspaceNumber ( ) ;
9089 const { convertToDisplayString} = useCurrencyListActions ( ) ;
@@ -380,42 +379,40 @@ function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportIn
380379
381380 // Ref writes below are inside onSelected callbacks that only fire on user interaction, never during render.
382381
383- const selectionModeReportLevelActions : Array < DropdownOption < string > & Pick < PopoverMenuItem , 'backButtonText' | 'rightIcon' > > = ! isBulkSubmitApprovePayBetaEnabled
384- ? [ ]
385- : [
386- ...( hasSubmitAction && ! shouldBlockSubmit
387- ? [
388- {
389- text : translate ( 'common.submit' ) ,
390- icon : expensifyIcons . Send ,
391- value : CONST . REPORT . PRIMARY_ACTIONS . SUBMIT ,
392- onSelected : ( ) => handleSubmitReport ( true ) ,
393- } ,
394- ]
395- : [ ] ) ,
396- ...( hasApproveAction && ! isBlockSubmitDueToPreventSelfApproval
397- ? [
398- {
399- text : translate ( 'iou.approve' ) ,
400- icon : expensifyIcons . ThumbsUp ,
401- value : CONST . REPORT . PRIMARY_ACTIONS . APPROVE ,
402- onSelected : ( ) => confirmApproval ( true ) ,
403- } ,
404- ]
405- : [ ] ) ,
406- ...( hasPayAction && ! ( isOffline && ! canAllowSettlement )
407- ? [
408- {
409- text : translate ( 'iou.settlePayment' , totalAmount ) ,
410- icon : expensifyIcons . Cash ,
411- value : CONST . REPORT . PRIMARY_ACTIONS . PAY as string ,
412- rightIcon : expensifyIcons . ArrowRight ,
413- backButtonText : translate ( 'iou.settlePayment' , totalAmount ) ,
414- subMenuItems : paymentSubMenuItems ,
415- } ,
416- ]
417- : [ ] ) ,
418- ] ;
382+ const selectionModeReportLevelActions : Array < DropdownOption < string > & Pick < PopoverMenuItem , 'backButtonText' | 'rightIcon' > > = [
383+ ...( hasSubmitAction && ! shouldBlockSubmit
384+ ? [
385+ {
386+ text : translate ( 'common.submit' ) ,
387+ icon : expensifyIcons . Send ,
388+ value : CONST . REPORT . PRIMARY_ACTIONS . SUBMIT ,
389+ onSelected : ( ) => handleSubmitReport ( true ) ,
390+ } ,
391+ ]
392+ : [ ] ) ,
393+ ...( hasApproveAction && ! isBlockSubmitDueToPreventSelfApproval
394+ ? [
395+ {
396+ text : translate ( 'iou.approve' ) ,
397+ icon : expensifyIcons . ThumbsUp ,
398+ value : CONST . REPORT . PRIMARY_ACTIONS . APPROVE ,
399+ onSelected : ( ) => confirmApproval ( true ) ,
400+ } ,
401+ ]
402+ : [ ] ) ,
403+ ...( hasPayAction && ! ( isOffline && ! canAllowSettlement )
404+ ? [
405+ {
406+ text : translate ( 'iou.settlePayment' , totalAmount ) ,
407+ icon : expensifyIcons . Cash ,
408+ value : CONST . REPORT . PRIMARY_ACTIONS . PAY as string ,
409+ rightIcon : expensifyIcons . ArrowRight ,
410+ backButtonText : translate ( 'iou.settlePayment' , totalAmount ) ,
411+ subMenuItems : paymentSubMenuItems ,
412+ } ,
413+ ]
414+ : [ ] ) ,
415+ ] ;
419416
420417 const mappedOptions = originalSelectedTransactionsOptions . map ( ( option ) => {
421418 if ( option . value === CONST . REPORT . SECONDARY_ACTIONS . DELETE ) {
0 commit comments