fix: Make spinner on PromiseInvokeButton same size as icon

This commit is contained in:
binarybaron 2024-08-10 12:23:39 +02:00
parent 116d9c0f4f
commit 191a25f941
No known key found for this signature in database
GPG key ID: 99B75D3E1476A26E

View file

@ -34,7 +34,7 @@ export default function PromiseInvokeButton<T>({
const isLoading = isPending || isLoadingOverride;
const actualEndIcon = isLoading
? loadIcon || <CircularProgress size="1em" />
? loadIcon || <CircularProgress size={24} />
: endIcon;
async function handleClick(event: React.MouseEvent<HTMLButtonElement>) {