From 5da561f3f98449318975c7c8ec6fdc1d94d3df54 Mon Sep 17 00:00:00 2001 From: Rocio Perez-Cano Date: Tue, 29 Aug 2023 10:19:53 -0400 Subject: [PATCH] Revert "Fix different grayness levels on parent and child messages." --- src/components/OfflineWithFeedback.js | 6 +----- src/pages/home/report/ReportActionItemParentAction.js | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/OfflineWithFeedback.js b/src/components/OfflineWithFeedback.js index fb0411d24f4c..2f99b21b6523 100644 --- a/src/components/OfflineWithFeedback.js +++ b/src/components/OfflineWithFeedback.js @@ -37,9 +37,6 @@ const propTypes = { /** Whether we should show the error messages */ shouldShowErrorMessages: PropTypes.bool, - /** Whether we should disable opacity */ - shouldDisableOpacity: PropTypes.bool, - /** A function to run when the X button next to the error is clicked */ onClose: PropTypes.func, @@ -66,7 +63,6 @@ const defaultProps = { shouldHideOnDelete: true, errors: null, shouldShowErrorMessages: true, - shouldDisableOpacity: false, onClose: () => {}, style: [], contentContainerStyle: [], @@ -100,7 +96,7 @@ function OfflineWithFeedback(props) { const isOfflinePendingAction = props.network.isOffline && props.pendingAction; const isUpdateOrDeleteError = hasErrors && (props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE || props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE); const isAddError = hasErrors && props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD; - const needsOpacity = !props.shouldDisableOpacity && ((isOfflinePendingAction && !isUpdateOrDeleteError) || isAddError); + const needsOpacity = (isOfflinePendingAction && !isUpdateOrDeleteError) || isAddError; const needsStrikeThrough = props.network.isOffline && props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; const hideChildren = props.shouldHideOnDelete && !props.network.isOffline && props.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE && !hasErrors; let children = props.children; diff --git a/src/pages/home/report/ReportActionItemParentAction.js b/src/pages/home/report/ReportActionItemParentAction.js index 1d89d76e960f..2af66779309e 100644 --- a/src/pages/home/report/ReportActionItemParentAction.js +++ b/src/pages/home/report/ReportActionItemParentAction.js @@ -53,7 +53,6 @@ function ReportActionItemParentAction(props) { } return (