using button loading props vs Loader component (#1677)

This commit is contained in:
Peer Richelsen authored and GitHub committed 2022-02-01 21:52:54 +00:00
1 parent 1d10874890
commit aa28cf0641
1 file changed
+1 -4
+1 -4
View File
@@ -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)}