disable buttons during bond claims
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
c3dbe0666f
commit
37c447ece5
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ghost-dao-interface",
|
"name": "ghost-dao-interface",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.2.7",
|
"version": "0.2.8",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
@ -117,7 +117,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<PrimaryButton
|
<PrimaryButton
|
||||||
disabled={totalClaimableBalance._value === 0n}
|
disabled={isPending || totalClaimableBalance._value === 0n}
|
||||||
fullWidth
|
fullWidth
|
||||||
className=""
|
className=""
|
||||||
onClick={() => onSubmit(notes.filter((note) => secondsTo > note.matured).map(note => note.id))}
|
onClick={() => onSubmit(notes.filter((note) => secondsTo > note.matured).map(note => note.id))}
|
||||||
@ -166,7 +166,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
|||||||
<Box mt="16px">
|
<Box mt="16px">
|
||||||
<TertiaryButton
|
<TertiaryButton
|
||||||
fullWidth
|
fullWidth
|
||||||
disabled={secondsTo < note.matured}
|
disabled={isPending || secondsTo < note.matured}
|
||||||
onClick={() => onSubmit([note.id])}
|
onClick={() => onSubmit([note.id])}
|
||||||
>
|
>
|
||||||
Claim
|
Claim
|
||||||
@ -222,7 +222,7 @@ export const ClaimBonds = ({ chainId, address, secondsTo }) => {
|
|||||||
<TableCell style={{ padding: "8px 0" }}>
|
<TableCell style={{ padding: "8px 0" }}>
|
||||||
<TertiaryButton
|
<TertiaryButton
|
||||||
fullWidth
|
fullWidth
|
||||||
disabled={secondsTo < note.matured}
|
disabled={isPending || secondsTo < note.matured}
|
||||||
onClick={() => onSubmit([note.id])}
|
onClick={() => onSubmit([note.id])}
|
||||||
>
|
>
|
||||||
Claim
|
Claim
|
||||||
|
Loading…
Reference in New Issue
Block a user