Skip to content

Commit

Permalink
Merge pull request #39465 from Expensify/nikki-receipt-offline-add
Browse files Browse the repository at this point in the history
Align offline receipt view for one-transaction and multi-transaction views
  • Loading branch information
Hayata Suenaga authored Apr 4, 2024
2 parents 5a1cf01 + bb894c7 commit 51af342
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -752,15 +752,18 @@ function ReportActionItem({
}
if (ReportUtils.isExpenseReport(report) || ReportUtils.isIOUReport(report)) {
return (
<OfflineWithFeedback pendingAction={action.pendingAction}>
// eslint-disable-next-line react/jsx-no-useless-fragment
<>
{transactionThreadReport && !isEmptyObject(transactionThreadReport) ? (
<>
{transactionCurrency !== report.currency && (
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
<OfflineWithFeedback pendingAction={action.pendingAction}>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
)}
<ShowContextMenuContext.Provider value={contextValue}>
<MoneyRequestView
Expand All @@ -771,13 +774,15 @@ function ReportActionItem({
</ShowContextMenuContext.Provider>
</>
) : (
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
<OfflineWithFeedback pendingAction={action.pendingAction}>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
)}
</OfflineWithFeedback>
</>
);
}

Expand Down

0 comments on commit 51af342

Please sign in to comment.