update type definition for containerRef in ColorPickerProps to allow null
This commit is contained in:
parent
b7293dc552
commit
d06b7c3b0f
|
|
@ -7,7 +7,7 @@ interface ColorPickerProps {
|
|||
value?: string;
|
||||
onChange?: (value: string) => void;
|
||||
className?: string;
|
||||
containerRef?: React.RefObject<HTMLDivElement>;
|
||||
containerRef?: React.RefObject<HTMLDivElement | null>;
|
||||
}
|
||||
|
||||
const hexToHsv = (hex: string) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue