Skip to content

Scheduling infrastructure for absolutely everyone.

using button loading props vs Loader component (#1677)

Peer Richelsenaa28cf0641bd
diff --git a/pages/integrations/index.tsx b/pages/integrations/index.tsx
index 96deb7c4624..2c503c73b21 100644
--- a/pages/integrations/index.tsx
+++ b/pages/integrations/index.tsx
@@ -610,12 +610,9 @@ function Web3ConnectBtn() {
utils.invalidateQueries("viewer.web3Integration");
};
- if (mutation.isLoading) {
- return <Loader />;
- }
-
return (
<Button
+ loading={mutation.isLoading}
color={connectionBtn ? "warn" : "secondary"}
disabled={result.isLoading || mutation.isLoading}
onClick={async () => await enableOrDisableWeb3(mutation)}