Skip to content

Commit

Permalink
Merge pull request #24056 from ChengDzun/add-offline-pattern-to-task-…
Browse files Browse the repository at this point in the history
…view

add-offline-pattern-to-task-view
  • Loading branch information
stitesExpensify authored Aug 11, 2023
2 parents a31412a + 88584c8 commit cffd2cd
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,26 +458,32 @@ function ReportActionItem(props) {
const parentReport = ReportActionsUtils.getParentReportAction(props.report);
if (ReportActionsUtils.isTransactionThread(parentReport)) {
return (
<MoneyRequestView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
<OfflineWithFeedback pendingAction={props.action.pendingAction}>
<MoneyRequestView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
);
}
if (ReportUtils.isTaskReport(props.report)) {
return (
<TaskView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
<OfflineWithFeedback pendingAction={props.action.pendingAction}>
<TaskView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
);
}
if (ReportUtils.isExpenseReport(props.report) || ReportUtils.isIOUReport(props.report)) {
return (
<MoneyReportView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
<OfflineWithFeedback pendingAction={props.action.pendingAction}>
<MoneyReportView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
);
}
return (
Expand Down

0 comments on commit cffd2cd

Please sign in to comment.