Skip to content

Commit

Permalink
test highlightedBackgroundColorIfNeeded
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Sep 23, 2023
1 parent c9e5fa5 commit a98f407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/home/report/ReportActionItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function ReportActionItem(props) {
const reportActionID = lodashGet(route, 'params.reportActionID');
const isReportActionLinked = reportActionID === props.action.reportActionID;

const highlightedBackgroundColorIfNeeded = useMemo(() => (isReportActionLinked ? StyleUtils.getBackgroundColorStyle(themeColors.highlightBG) : {}), [isReportActionLinked]);
const highlightedBackgroundColorIfNeeded = useMemo(() => (isReportActionLinked ? {backgroundColor: themeColors.highlightBG} : {}), [isReportActionLinked]);

// When active action changes, we need to update the `isContextMenuActive` state
const isActiveReportActionForMenu = ReportActionContextMenu.isActiveReportAction(props.action.reportActionID);
Expand Down

0 comments on commit a98f407

Please sign in to comment.