Skip to content

Commit

Permalink
Improve loading display of Button (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 authored Jul 29, 2024
1 parent 055fd90 commit b6ebe05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/ui/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default forwardRef<HTMLButtonElement, ButtonHTMLAttributes<HTMLButtonElem
<div className="h-5 w-5 animate-spin rounded-full border-[3px] border-b-white/50 border-l-white/50 border-r-white border-t-white" />
</div>
)}
{children}
<div className={`${busy ? "invisible" : "visible"}`}>{children}</div>
</button>
);
});

0 comments on commit b6ebe05

Please sign in to comment.