This commit is contained in:
sandra 2022-11-12 13:24:08 +01:00
parent a40c827ca8
commit 4f0c48c240
2 changed files with 10 additions and 1 deletions

View File

@ -41,7 +41,11 @@ async function withdraw(){
</table> </table>
<br/> <br/>
<div className="btnArea"> <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>
</div> </div>
) )

View File

@ -13,6 +13,11 @@
cursor: pointer; cursor: pointer;
} }
.withdrawBtn:disabled {
background: #cbd0d4;
cursor:not-allowed;
}
.extendBtn { .extendBtn {
padding: 10px; padding: 10px;
background: #be60e0; background: #be60e0;