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} {...props}
> >
{loading ? ( {loading ? (
<span className={cn("relative")}> <span className="relative">
<span className={loading ? "invisible" : "hidden"}> <span className="hidden">{newChildren}</span>
{newChildren}
</span>
<span className="absolute inset-0 flex items-center justify-center"> <span className="absolute inset-0 flex items-center justify-center">
<ForwardedIconComponent <ForwardedIconComponent
name={"Loader2"} name={"Loader2"}