Skip to content

Commit

Permalink
use existing theme.hoverComponentBG key
Browse files Browse the repository at this point in the history
  • Loading branch information
grgia committed Dec 14, 2023
1 parent 84f5d04 commit debced7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,8 @@ function ReportActionItem(props) {
const isReportActionLinked = props.linkedReportActionID === props.action.reportActionID;

const highlightedBackgroundColorIfNeeded = useMemo(
() => (isReportActionLinked ? StyleUtils.getBackgroundColorStyle(theme.rowHover) : {}),
[StyleUtils, isReportActionLinked, theme.rowHover],
() => (isReportActionLinked ? StyleUtils.getBackgroundColorStyle(theme.hoverComponentBG) : {}),
[StyleUtils, isReportActionLinked, theme.hoverComponentBG],
);
const originalMessage = lodashGet(props.action, 'originalMessage', {});
const isDeletedParentAction = ReportActionsUtils.isDeletedParentAction(props.action);
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/themes/dark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const darkTheme = {
transparent: colors.transparent,
signInPage: colors.green800,
darkSupportingText: colors.productDark800,
rowHover: colors.productDark300,

// Additional keys
overlay: colors.productDark400,
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/themes/light.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const lightTheme = {
transparent: colors.transparent,
signInPage: colors.green800,
darkSupportingText: colors.productDark800,
rowHover: colors.productLight300,

// Additional keys
overlay: colors.productLight400,
Expand Down
1 change: 0 additions & 1 deletion src/styles/theme/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type ThemeColors = {
transparent: Color;
signInPage: Color;
darkSupportingText: Color;
rowHover: Color;

// Additional keys
overlay: Color;
Expand Down

0 comments on commit debced7

Please sign in to comment.