using button loading props vs Loader component (#1677)
This commit is contained in:
		
							parent
							
								
									1d10874890
								
							
						
					
					
						commit
						aa28cf0641
					
				
					 1 changed files with 1 additions and 4 deletions
				
			
		|  | @ -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)} | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Peer Richelsen
						Peer Richelsen