Skip to content

Commit

Permalink
feat: button disabled while transaction loading
Browse files Browse the repository at this point in the history
  • Loading branch information
trbutler4 committed Sep 13, 2023
1 parent a6e9b6d commit 6a8b476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integrations/unlock/components/form-deploy-lock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,9 @@ export default function FormDeployLock() {
<input className="input mt-4" placeholder={keyPrice} onChange={(e) => setKeyPrice(e.target.value)} />
</div>
<div className="m-10 flex flex-col items-center justify-center space-y-4">
<Button onClick={handleDeploy}>Deploy Lock</Button>
<Button disabled={isLoading ? true : false} onClick={handleDeploy}>
Deploy Lock
</Button>
<TransactionStatus isError={isError} isLoadingTx={isLoading} isSuccess={isSuccess} />
</div>
</div>
Expand Down

0 comments on commit 6a8b476

Please sign in to comment.