Skip to content

Commit

Permalink
Fix different grayness in MoneyRequestView and TaskView
Browse files Browse the repository at this point in the history
  • Loading branch information
ginsuma committed Sep 20, 2023
1 parent 5d71d32 commit 1433235
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
16 changes: 9 additions & 7 deletions src/components/ReportActionItem/MoneyRequestView.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ function MoneyRequestView({report, parentReport, shouldShowHorizontalRule, trans
</View>

{hasReceipt && (
<View style={styles.moneyRequestViewImage}>
<ReportActionItemImage
thumbnail={receiptURIs.thumbnail}
image={receiptURIs.image}
enablePreviewModal
/>
</View>
<OfflineWithFeedback pendingAction={lodashGet(transaction, 'pendingAction')}>
<View style={styles.moneyRequestViewImage}>
<ReportActionItemImage
thumbnail={receiptURIs.thumbnail}
image={receiptURIs.image}
enablePreviewModal
/>
</View>
</OfflineWithFeedback>
)}
<OfflineWithFeedback pendingAction={lodashGet(transaction, 'pendingFields.amount') || lodashGet(transaction, 'pendingAction')}>
<MenuItemWithTopDescription
Expand Down
20 changes: 8 additions & 12 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,12 +511,10 @@ function ReportActionItem(props) {
checkIfContextMenuActive: toggleContextMenuFromActiveReportAction,
}}
>
<OfflineWithFeedback pendingAction={props.action.pendingAction}>
<MoneyRequestView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
<MoneyRequestView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</ShowContextMenuContext.Provider>
);
}
Expand All @@ -538,12 +536,10 @@ function ReportActionItem(props) {
}

return (
<OfflineWithFeedback pendingAction={props.action.pendingAction}>
<TaskView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
</OfflineWithFeedback>
<TaskView
report={props.report}
shouldShowHorizontalRule={!props.shouldHideThreadDividerLine}
/>
);
}
if (ReportUtils.isExpenseReport(props.report) || ReportUtils.isIOUReport(props.report)) {
Expand Down

0 comments on commit 1433235

Please sign in to comment.