@@ -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 ( ) ;
@@ -373,42 +372,40 @@ function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportIn
373372
374373 // Ref writes below are inside onSelected callbacks that only fire on user interaction, never during render.
375374
376- const selectionModeReportLevelActions : Array < DropdownOption < string > & Pick < PopoverMenuItem , 'backButtonText' | 'rightIcon' > > = ! isBulkSubmitApprovePayBetaEnabled
377- ? [ ]
378- : [
379- ...( hasSubmitAction && ! shouldBlockSubmit
380- ? [
381- {
382- text : translate ( 'common.submit' ) ,
383- icon : expensifyIcons . Send ,
384- value : CONST . REPORT . PRIMARY_ACTIONS . SUBMIT ,
385- onSelected : ( ) => handleSubmitReport ( true ) ,
386- } ,
387- ]
388- : [ ] ) ,
389- ...( hasApproveAction && ! isBlockSubmitDueToPreventSelfApproval
390- ? [
391- {
392- text : translate ( 'iou.approve' ) ,
393- icon : expensifyIcons . ThumbsUp ,
394- value : CONST . REPORT . PRIMARY_ACTIONS . APPROVE ,
395- onSelected : ( ) => confirmApproval ( true ) ,
396- } ,
397- ]
398- : [ ] ) ,
399- ...( hasPayAction && ! ( isOffline && ! canAllowSettlement )
400- ? [
401- {
402- text : translate ( 'iou.settlePayment' , totalAmount ) ,
403- icon : expensifyIcons . Cash ,
404- value : CONST . REPORT . PRIMARY_ACTIONS . PAY as string ,
405- rightIcon : expensifyIcons . ArrowRight ,
406- backButtonText : translate ( 'iou.settlePayment' , totalAmount ) ,
407- subMenuItems : paymentSubMenuItems ,
408- } ,
409- ]
410- : [ ] ) ,
411- ] ;
375+ const selectionModeReportLevelActions : Array < DropdownOption < string > & Pick < PopoverMenuItem , 'backButtonText' | 'rightIcon' > > = [
376+ ...( hasSubmitAction && ! shouldBlockSubmit
377+ ? [
378+ {
379+ text : translate ( 'common.submit' ) ,
380+ icon : expensifyIcons . Send ,
381+ value : CONST . REPORT . PRIMARY_ACTIONS . SUBMIT ,
382+ onSelected : ( ) => handleSubmitReport ( true ) ,
383+ } ,
384+ ]
385+ : [ ] ) ,
386+ ...( hasApproveAction && ! isBlockSubmitDueToPreventSelfApproval
387+ ? [
388+ {
389+ text : translate ( 'iou.approve' ) ,
390+ icon : expensifyIcons . ThumbsUp ,
391+ value : CONST . REPORT . PRIMARY_ACTIONS . APPROVE ,
392+ onSelected : ( ) => confirmApproval ( true ) ,
393+ } ,
394+ ]
395+ : [ ] ) ,
396+ ...( hasPayAction && ! ( isOffline && ! canAllowSettlement )
397+ ? [
398+ {
399+ text : translate ( 'iou.settlePayment' , totalAmount ) ,
400+ icon : expensifyIcons . Cash ,
401+ value : CONST . REPORT . PRIMARY_ACTIONS . PAY as string ,
402+ rightIcon : expensifyIcons . ArrowRight ,
403+ backButtonText : translate ( 'iou.settlePayment' , totalAmount ) ,
404+ subMenuItems : paymentSubMenuItems ,
405+ } ,
406+ ]
407+ : [ ] ) ,
408+ ] ;
412409
413410 const mappedOptions = originalSelectedTransactionsOptions . map ( ( option ) => {
414411 if ( option . value === CONST . REPORT . SECONDARY_ACTIONS . DELETE ) {
0 commit comments