disable withdraw button when no account

This commit is contained in:
saml33 2021-08-25 20:54:39 +10:00
parent b1215906a9
commit 2a1b8f59ea
2 changed files with 3 additions and 3 deletions

View File

@ -292,7 +292,7 @@ export default function AccountInfo() {
<Button
onClick={() => setShowWithdrawModal(true)}
className="w-full"
disabled={!connected}
disabled={!connected || !mangoAccount}
>
<span>Withdraw</span>
</Button>

View File

@ -139,7 +139,7 @@ const NewAccount: FunctionComponent<NewAccountProps> = ({
return (
<>
<ElementTitle className="pb-2">New Account</ElementTitle>
<ElementTitle className="pb-2">Create Account</ElementTitle>
<div className="pb-4">
<div className="flex items-center pb-2 text-th-fgd-1">
Account Name <span className="ml-1 text-th-fgd-3">(Optional)</span>
@ -212,7 +212,7 @@ const NewAccount: FunctionComponent<NewAccountProps> = ({
>
<div className={`flex items-center justify-center`}>
{submitting && <Loading className="-ml-1 mr-3" />}
Create New Account
Let&apos;s Go
</div>
</Button>
</div>