fixed unnecessary code at Button

This commit is contained in:
Lucas Oliveira 2024-06-04 19:07:08 -03:00
commit 42d22ae86e

View file

@ -80,10 +80,8 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
{...props}
>
{loading ? (
<span className={cn("relative")}>
<span className={loading ? "invisible" : "hidden"}>
{newChildren}
</span>
<span className="relative">
<span className="hidden">{newChildren}</span>
<span className="absolute inset-0 flex items-center justify-center">
<ForwardedIconComponent
name={"Loader2"}