@@ -3,7 +3,7 @@ import PropTypes from "prop-types";
3
3
import cx from "classnames" ;
4
4
import NOOP from "lodash/noop" ;
5
5
import { COLOR_STYLES } from "../../../../general-stories/colors/colors-vars-map" ;
6
- import { getMondayColorAsStyle } from "../../../../utils/colors-utils" ;
6
+ import ColorUtils from "../../../../utils/colors-utils" ;
7
7
import "./ColorPickerItemComponent.scss" ;
8
8
import Icon from "../../../Icon/Icon" ;
9
9
import Tooltip from "../../../Tooltip/Tooltip" ;
@@ -22,7 +22,7 @@ const ColorPickerItemComponent = ({
22
22
colorSize,
23
23
tooltipContent
24
24
} ) => {
25
- const colorAsStyle = getMondayColorAsStyle ( color , colorStyle ) ;
25
+ const colorAsStyle = ColorUtils . getMondayColorAsStyle ( color , colorStyle ) ;
26
26
const itemRef = useRef ( null ) ;
27
27
28
28
const onMouseDown = useCallback ( e => e . preventDefault ( ) , [ ] ) ;
@@ -33,9 +33,9 @@ const ColorPickerItemComponent = ({
33
33
const item = itemRef . current ;
34
34
const onHover = e => {
35
35
if ( colorStyle === COLOR_STYLES . SELECTED ) {
36
- e . target . style . background = getMondayColorAsStyle ( color , COLOR_STYLES . REGULAR ) ;
36
+ e . target . style . background = ColorUtils . getMondayColorAsStyle ( color , COLOR_STYLES . REGULAR ) ;
37
37
} else {
38
- e . target . style . background = getMondayColorAsStyle ( color , COLOR_STYLES . SELECTED ) ;
38
+ e . target . style . background = ColorUtils . getMondayColorAsStyle ( color , COLOR_STYLES . SELECTED ) ;
39
39
}
40
40
} ;
41
41
const onMouseLeave = e => {
0 commit comments