reset confirm for completion page

This commit is contained in:
josc146
2023-06-14 20:45:52 +08:00
parent 17c690dfb1
commit 1591430742
4 changed files with 20 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ export const ToolTipButton: FC<{
text?: string | null,
desc: string,
icon?: ReactElement,
className?: string,
size?: 'small' | 'medium' | 'large',
shape?: 'rounded' | 'circular' | 'square';
appearance?: 'secondary' | 'primary' | 'outline' | 'subtle' | 'transparent';
@@ -14,6 +15,7 @@ export const ToolTipButton: FC<{
text,
desc,
icon,
className,
size,
shape,
appearance,
@@ -22,7 +24,7 @@ export const ToolTipButton: FC<{
}) => {
return (
<Tooltip content={desc} showDelay={0} hideDelay={0} relationship="label">
<Button disabled={disabled} icon={icon} onClick={onClick} size={size} shape={shape}
<Button className={className} disabled={disabled} icon={icon} onClick={onClick} size={size} shape={shape}
appearance={appearance}>{text}</Button>
</Tooltip>
);