Skip to content

Commit

Permalink
Revert "Align offline receipt view for one-transaction and multi-tran…
Browse files Browse the repository at this point in the history
…saction views"
  • Loading branch information
pecanoro committed Apr 9, 2024
1 parent 05eb481 commit 7de0e40
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions src/pages/home/report/ReportActionItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -753,18 +753,15 @@ function ReportActionItem({
}
if (ReportUtils.isExpenseReport(report) || ReportUtils.isIOUReport(report)) {
return (
// eslint-disable-next-line react/jsx-no-useless-fragment
<>
<OfflineWithFeedback pendingAction={action.pendingAction}>
{transactionThreadReport && !isEmptyObject(transactionThreadReport) ? (
<>
{transactionCurrency !== report.currency && (
<OfflineWithFeedback pendingAction={action.pendingAction}>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
)}
<ShowContextMenuContext.Provider value={contextValue}>
<MoneyRequestView
Expand All @@ -775,15 +772,13 @@ function ReportActionItem({
</ShowContextMenuContext.Provider>
</>
) : (
<OfflineWithFeedback pendingAction={action.pendingAction}>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
<MoneyReportView
report={report}
policy={policy}
shouldShowHorizontalRule={!shouldHideThreadDividerLine}
/>
)}
</>
</OfflineWithFeedback>
);
}

Expand Down

0 comments on commit 7de0e40

Please sign in to comment.