Skip to content

Commit

Permalink
align offline receipt view for one-transaction and multi-transaction …
Browse files Browse the repository at this point in the history
…views
  • Loading branch information
NikkiWines committed Apr 2, 2024
1 parent 8300ae4 commit bb894c7
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 bb894c7

Please sign in to comment.