Skip to content

Commit e1560fd

Browse files
BeamanatorOSBotify
authored andcommitted
Merge pull request #40648 from ishpaul777/fix/40549
[CP Staging] fixes track whispers follow up minor issues (cherry picked from commit 4e922f1)
1 parent 8045c2e commit e1560fd

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

src/components/MoneyRequestConfirmationList.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,7 @@ function MoneyRequestConfirmationList({
607607
<ConfirmedRoute transaction={transaction} />
608608
</View>
609609
)}
610+
<<<<<<< HEAD
610611
{/* eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing */}
611612
{receiptImage || receiptThumbnail ? (
612613
<ReceiptImage
@@ -683,6 +684,25 @@ function MoneyRequestConfirmationList({
683684
interactive={!isReadOnly}
684685
numberOfLinesTitle={2}
685686
/>
687+
=======
688+
{!isDistanceRequest &&
689+
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
690+
(receiptImage || receiptThumbnail
691+
? receiptThumbnailContent
692+
: // The empty receipt component should only show for IOU Requests of a paid policy ("Team" or "Corporate")
693+
PolicyUtils.isPaidGroupPolicy(policy) &&
694+
!isDistanceRequest &&
695+
iouType === CONST.IOU.TYPE.REQUEST && (
696+
<ReceiptEmptyState
697+
onPress={() =>
698+
Navigation.navigate(
699+
ROUTES.MONEY_REQUEST_STEP_SCAN.getRoute(CONST.IOU.ACTION.CREATE, iouType, transactionID, reportID, Navigation.getActiveRouteWithoutParams()),
700+
)
701+
}
702+
/>
703+
))}
704+
{primaryFields}
705+
>>>>>>> 4e922f14 (Merge pull request #40648 from ishpaul777/fix/40549)
686706
{!shouldShowAllFields && (
687707
<ShowMoreButton
688708
containerStyle={[styles.mt1, styles.mb2]}

src/pages/iou/request/MoneyTemporaryForRefactorRequestParticipantsSelector.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({participants, onF
118118
false,
119119
{},
120120
[],
121-
canUseP2PDistanceRequests || iouRequestType !== CONST.IOU.REQUEST_TYPE.DISTANCE,
121+
(canUseP2PDistanceRequests || iouRequestType !== CONST.IOU.REQUEST_TYPE.DISTANCE) && ![CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action),
122122
false,
123123
);
124124

@@ -363,7 +363,6 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({participants, onF
363363
iconWidth={variables.emptyWorkspaceIconWidth}
364364
iconHeight={variables.emptyWorkspaceIconHeight}
365365
title={translate('workspace.emptyWorkspace.notFound')}
366-
subtitle={translate('workspace.emptyWorkspace.description')}
367366
shouldShowLink={false}
368367
/>
369368
<Button
@@ -378,7 +377,13 @@ function MoneyTemporaryForRefactorRequestParticipantsSelector({participants, onF
378377
);
379378

380379
const isAllSectionsEmpty = _.every(sections, (section) => section.data.length === 0);
381-
if ([CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) && isAllSectionsEmpty && didScreenTransitionEnd && searchTerm.trim() === '') {
380+
if (
381+
[CONST.IOU.ACTION.CATEGORIZE, CONST.IOU.ACTION.SHARE].includes(action) &&
382+
isAllSectionsEmpty &&
383+
didScreenTransitionEnd &&
384+
debouncedSearchTerm.trim() === '' &&
385+
areOptionsInitialized
386+
) {
382387
return renderEmptyWorkspaceView();
383388
}
384389

0 commit comments

Comments
 (0)