disable withdraw button when no account
This commit is contained in:
parent
b1215906a9
commit
2a1b8f59ea
|
@ -292,7 +292,7 @@ export default function AccountInfo() {
|
|||
<Button
|
||||
onClick={() => setShowWithdrawModal(true)}
|
||||
className="w-full"
|
||||
disabled={!connected}
|
||||
disabled={!connected || !mangoAccount}
|
||||
>
|
||||
<span>Withdraw</span>
|
||||
</Button>
|
||||
|
|
|
@ -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's Go
|
||||
</div>
|
||||
</Button>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue