The open-source CapCut alternative
fix(ui): add tooltipText prop to PlusButton
enkeii64e0a5d4860a8b
diff --git a/apps/web/src/components/ui/draggable-item.tsx b/apps/web/src/components/ui/draggable-item.tsxindex c1f81e16..6e1e4990 100644--- a/apps/web/src/components/ui/draggable-item.tsx+++ b/apps/web/src/components/ui/draggable-item.tsx@@ -149,7 +149,15 @@ export function DraggableMediaItem({);}-function PlusButton({ className, onClick }: { className?: string; onClick?: () => void }) {+function PlusButton({+ className,+ onClick,+ tooltipText,+}: {+ className?: string;+ onClick?: () => void;+ tooltipText?: string;+}) {return (<Buttonsize="icon"@@ -159,6 +167,7 @@ function PlusButton({ className, onClick }: { className?: string; onClick?: () =e.stopPropagation();onClick?.();}}+ title={tooltipText}><Plus className="!size-3" /></Button>