Remove add funds buttons
This commit is contained in:
parent
f6c1f46229
commit
7673b32a0c
|
@ -61,16 +61,7 @@ export function AmountInput(props: {
|
|||
|
||||
{error && (
|
||||
<div className="mb-2 mr-auto self-center whitespace-nowrap text-xs font-medium tracking-wide text-red-500">
|
||||
{error === 'Insufficient balance' ? (
|
||||
<>
|
||||
Not enough funds.
|
||||
<span className="ml-1 text-indigo-500">
|
||||
<SiteLink href="/add-funds">Buy more?</SiteLink>
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
error
|
||||
)}
|
||||
{error === 'Insufficient balance' ? <>Not enough funds.</> : error}
|
||||
</div>
|
||||
)}
|
||||
</Col>
|
||||
|
|
|
@ -441,12 +441,6 @@ export function NewContract(props: {
|
|||
{ante > balance && (
|
||||
<div className="mb-2 mt-2 mr-auto self-center whitespace-nowrap text-xs font-medium tracking-wide">
|
||||
<span className="mr-2 text-red-500">Insufficient balance</span>
|
||||
<button
|
||||
className="btn btn-xs btn-primary"
|
||||
onClick={() => (window.location.href = '/add-funds')}
|
||||
>
|
||||
Get M$
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
@ -240,7 +240,6 @@ export default function ProfilePage() {
|
|||
<label className="label">Balance</label>
|
||||
<Row className="ml-1 items-start gap-4 text-gray-500">
|
||||
{formatMoney(user?.balance || 0)}
|
||||
<AddFundsButton />
|
||||
</Row>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user