Skip to content

Commit a4ee9bb

Browse files
author
Guru
committed
fix: button loader issue
1 parent ef21239 commit a4ee9bb

File tree

1 file changed

+0
-9
lines changed
  • demo/redirect-flow-example/src/components

1 file changed

+0
-9
lines changed

demo/redirect-flow-example/src/components/Button.tsx

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,6 @@ const Button = React.forwardRef<HTMLButtonElement | HTMLAnchorElement, ButtonPro
8585
disabled={loading || props.disabled || loadingWithText}
8686
{...(props as React.ButtonHTMLAttributes<HTMLButtonElement> & React.AnchorHTMLAttributes<HTMLAnchorElement>)}
8787
>
88-
{(loading || loadingWithText) && (
89-
<span
90-
className={cn(
91-
"loading loading-spinner w-5 h-5",
92-
{ "mr-2": !loading },
93-
classes.loader
94-
)}
95-
/>
96-
)}
9788
{loading && <Loader size={"sm"} containerClass="flex-none" />}
9889
{!loading && children}
9990
</Component>

0 commit comments

Comments
 (0)