fix tooltip asChild
This commit is contained in:
parent
f1c7f6dc99
commit
9d6fc3bc42
@ -58,7 +58,7 @@ const Button: React.FC<ButtonProps> = props => {
|
||||
].join(' ')}
|
||||
>
|
||||
{icon}
|
||||
{children ? <span>{children}</span> : null}
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
.tooltip-trigger {
|
||||
all: unset;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
@ -13,7 +13,7 @@ const Tooltip = (props: MyTooltipProps) => {
|
||||
return (
|
||||
<TooltipPrimitive.Root>
|
||||
<TooltipPrimitive.Provider>
|
||||
<TooltipPrimitive.Trigger className="tooltip-trigger">
|
||||
<TooltipPrimitive.Trigger className="tooltip-trigger" asChild>
|
||||
{children}
|
||||
</TooltipPrimitive.Trigger>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user