mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix(ui): add tooltipText prop to PlusButton
This commit is contained in:
@@ -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 (
|
return (
|
||||||
<Button
|
<Button
|
||||||
size="icon"
|
size="icon"
|
||||||
@@ -159,6 +167,7 @@ function PlusButton({ className, onClick }: { className?: string; onClick?: () =
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
onClick?.();
|
onClick?.();
|
||||||
}}
|
}}
|
||||||
|
title={tooltipText}
|
||||||
>
|
>
|
||||||
<Plus className="!size-3" />
|
<Plus className="!size-3" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|||||||
Reference in New Issue
Block a user