diff options
| author | enkeii64 <imenkei64@gmail.com> | 2025-07-17 00:06:22 +1000 |
|---|---|---|
| committer | enkeii64 <imenkei64@gmail.com> | 2025-07-17 00:06:22 +1000 |
| commit | e0a5d4860a8b5c6f4be70414a83613b6509b8a78 (patch) | |
| tree | ac09aaf69e5b99ccb776f0cf285df0486141f69b /apps/web/src | |
| parent | f83f647299fe4e650052371e0c5efd1aa9801be9 (diff) | |
| download | opencut-e0a5d4860a8b5c6f4be70414a83613b6509b8a78.tar.gz | |
fix(ui): add tooltipText prop to PlusButton
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/components/ui/draggable-item.tsx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/web/src/components/ui/draggable-item.tsx b/apps/web/src/components/ui/draggable-item.tsx index 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 ( <Button size="icon" @@ -159,6 +167,7 @@ function PlusButton({ className, onClick }: { className?: string; onClick?: () = e.stopPropagation(); onClick?.(); }} + title={tooltipText} > <Plus className="!size-3" /> </Button> |
