sync
This commit is contained in:
parent
a40c827ca8
commit
4f0c48c240
|
|
@ -41,7 +41,11 @@ async function withdraw(){
|
|||
</table>
|
||||
<br/>
|
||||
<div className="btnArea">
|
||||
<button className="withdrawBtn" onClick={withdraw}>Withdraw</button>
|
||||
{ props.amount > 0 ?
|
||||
<button className="withdrawBtn" onClick={withdraw} >Withdraw</button>
|
||||
:
|
||||
<button className="withdrawBtn" onClick={withdraw} disabled>Withdraw</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,6 +13,11 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
|
||||
.withdrawBtn:disabled {
|
||||
background: #cbd0d4;
|
||||
cursor:not-allowed;
|
||||
}
|
||||
|
||||
.extendBtn {
|
||||
padding: 10px;
|
||||
background: #be60e0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue