update type definition for containerRef in ColorPickerProps to allow null

This commit is contained in:
Maze Winther
2026-02-01 01:44:48 +01:00
parent b7293dc552
commit d06b7c3b0f
+1 -1
View File
@@ -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) => {