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