Skip to content

The open-source CapCut alternative

update type definition for containerRef in ColorPickerProps to allow null

Maze Wintherd06b7c3b0fa6
diff --git a/apps/web/src/components/ui/color-picker.tsx b/apps/web/src/components/ui/color-picker.tsx
index ad350e0e..a57a86e0 100644
--- a/apps/web/src/components/ui/color-picker.tsx
+++ b/apps/web/src/components/ui/color-picker.tsx
@@ -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) => {