mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
add missing play button onto title combined image
This commit is contained in:
@@ -87,9 +87,20 @@ const TooltipLabel = ({ label }: { label: React.ReactNode | string; type: Play }
|
||||
);
|
||||
};
|
||||
|
||||
export const PlayTooltip = ({ children, type }: { children: React.ReactNode; type: Play }) => {
|
||||
export const PlayTooltip = ({
|
||||
children,
|
||||
disabled,
|
||||
type,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
disabled?: boolean;
|
||||
type: Play;
|
||||
}) => {
|
||||
return (
|
||||
<Tooltip label={<TooltipLabel label={PLAY_BEHAVIOR_TO_LABEL[type]} type={type} />}>
|
||||
<Tooltip
|
||||
disabled={disabled}
|
||||
label={<TooltipLabel label={PLAY_BEHAVIOR_TO_LABEL[type]} type={type} />}
|
||||
>
|
||||
{children}
|
||||
</Tooltip>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user