@@ -533,6 +533,24 @@ function MoneyRequestView({report, shouldShowAnimatedBackground, readonly = fals
533
533
/>
534
534
</ OfflineWithFeedback >
535
535
) }
536
+ { shouldShowReceiptEmptyState && (
537
+ < OfflineWithFeedback pendingAction = { getPendingFieldAction ( 'receipt' ) } >
538
+ < ReceiptEmptyState
539
+ hasError = { hasErrors }
540
+ disabled = { ! canEditReceipt }
541
+ onPress = { ( ) => {
542
+ if ( ! transaction ?. transactionID || ! report ?. reportID ) {
543
+ return ;
544
+ }
545
+ Navigation . navigate (
546
+ ROUTES . MONEY_REQUEST_STEP_SCAN . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction . transactionID , report . reportID , getReportRHPActiveRoute ( ) ) ,
547
+ ) ;
548
+ } }
549
+ isThumbnail = { ! canEditReceipt }
550
+ isInMoneyRequestView
551
+ />
552
+ </ OfflineWithFeedback >
553
+ ) }
536
554
{ ( hasReceipt || ! ! errors ) && (
537
555
< OfflineWithFeedback
538
556
pendingAction = { isDistanceRequest ? getPendingFieldAction ( 'waypoints' ) : getPendingFieldAction ( 'receipt' ) }
@@ -573,24 +591,6 @@ function MoneyRequestView({report, shouldShowAnimatedBackground, readonly = fals
573
591
) }
574
592
</ OfflineWithFeedback >
575
593
) }
576
- { shouldShowReceiptEmptyState && (
577
- < OfflineWithFeedback pendingAction = { getPendingFieldAction ( 'receipt' ) } >
578
- < ReceiptEmptyState
579
- hasError = { hasErrors }
580
- disabled = { ! canEditReceipt }
581
- onPress = { ( ) => {
582
- if ( ! transaction ?. transactionID || ! report ?. reportID ) {
583
- return ;
584
- }
585
- Navigation . navigate (
586
- ROUTES . MONEY_REQUEST_STEP_SCAN . getRoute ( CONST . IOU . ACTION . EDIT , iouType , transaction . transactionID , report . reportID , getReportRHPActiveRoute ( ) ) ,
587
- ) ;
588
- } }
589
- isThumbnail = { ! canEditReceipt }
590
- isInMoneyRequestView
591
- />
592
- </ OfflineWithFeedback >
593
- ) }
594
594
{ ! shouldShowReceiptEmptyState && ! hasReceipt && < View style = { { marginVertical : 6 } } /> }
595
595
{ ! ! shouldShowAuditMessage && < ReceiptAuditMessages notes = { receiptImageViolations } /> }
596
596
< OfflineWithFeedback pendingAction = { getPendingFieldAction ( 'amount' ) ?? ( amountTitle ? getPendingFieldAction ( 'customUnitRateID' ) : undefined ) } >
0 commit comments