diff --git a/packages/grafana-ui/src/components/ColorPicker/ColorInput.tsx b/packages/grafana-ui/src/components/ColorPicker/ColorInput.tsx index 7ad1c84574f..7ef2fc2719f 100644 --- a/packages/grafana-ui/src/components/ColorPicker/ColorInput.tsx +++ b/packages/grafana-ui/src/components/ColorPicker/ColorInput.tsx @@ -4,8 +4,8 @@ import { debounce } from 'lodash'; import { ColorPickerProps } from './ColorPickerPopover'; import { Input } from '../Input/Input'; -import { useStyles } from '../../themes'; -import { GrafanaTheme } from '@grafana/data'; +import { useStyles2 } from '../../themes'; +import { GrafanaThemeV2 } from '@grafana/data'; import { cx, css } from '@emotion/css'; interface ColorInputState { @@ -88,7 +88,7 @@ interface ColorPreviewProps { } const ColorPreview = ({ color }: ColorPreviewProps) => { - const styles = useStyles(getColorPreviewStyles); + const styles = useStyles2(getColorPreviewStyles); return (