Update add funds button position. Mantic => Manifold
This commit is contained in:
parent
b4a22ba4a1
commit
e0123748b9
|
@ -5,7 +5,8 @@ import { useUser } from '../hooks/use-user'
|
||||||
import { checkoutURL } from '../lib/service/stripe'
|
import { checkoutURL } from '../lib/service/stripe'
|
||||||
import { FundsSelector } from './yes-no-selector'
|
import { FundsSelector } from './yes-no-selector'
|
||||||
|
|
||||||
export function AddFundsButton() {
|
export function AddFundsButton(props: { className?: string }) {
|
||||||
|
const { className } = props
|
||||||
const user = useUser()
|
const user = useUser()
|
||||||
|
|
||||||
const [amountSelected, setAmountSelected] = useState<
|
const [amountSelected, setAmountSelected] = useState<
|
||||||
|
@ -17,7 +18,8 @@ export function AddFundsButton() {
|
||||||
<label
|
<label
|
||||||
htmlFor="add-funds"
|
htmlFor="add-funds"
|
||||||
className={clsx(
|
className={clsx(
|
||||||
'btn btn-sm modal-button bg-gradient-to-r from-teal-500 to-green-500 hover:from-teal-600 hover:to-green-600 font-normal border-none'
|
'btn btn-sm normal-case modal-button bg-gradient-to-r from-teal-500 to-green-500 hover:from-teal-600 hover:to-green-600 font-normal border-none',
|
||||||
|
className
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
Add funds
|
Add funds
|
||||||
|
@ -25,11 +27,11 @@ export function AddFundsButton() {
|
||||||
<input type="checkbox" id="add-funds" className="modal-toggle" />
|
<input type="checkbox" id="add-funds" className="modal-toggle" />
|
||||||
|
|
||||||
<div className="modal">
|
<div className="modal">
|
||||||
<div className="modal-box bg-green-50">
|
<div className="modal-box">
|
||||||
<div className="text-xl mb-6">Get Mantic Dollars</div>
|
<div className="text-xl mb-6">Get Manifold Dollars</div>
|
||||||
|
|
||||||
<div className="text-gray-500 mb-6">
|
<div className="text-gray-500 mb-6">
|
||||||
Use Mantic Dollars to trade in your favorite markets. <br /> (Not
|
Use Manifold Dollars to trade in your favorite markets. <br /> (Not
|
||||||
redeemable for cash.)
|
redeemable for cash.)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -150,22 +150,9 @@ export function BetPanel(props: { contract: Contract; className?: string }) {
|
||||||
{error}
|
{error}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{user && <AddFundsButton className="self-end mt-3" />}
|
||||||
</Col>
|
</Col>
|
||||||
|
|
||||||
{user && (
|
|
||||||
<>
|
|
||||||
<div className="mt-3 mb-1 text-sm text-gray-400">
|
|
||||||
Remaining balance
|
|
||||||
</div>
|
|
||||||
<Row className="flex-1 justify-between items-center gap-2">
|
|
||||||
<div>
|
|
||||||
{formatMoney(remainingBalance > 0 ? remainingBalance : 0)}
|
|
||||||
</div>
|
|
||||||
<AddFundsButton />
|
|
||||||
</Row>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<div className="mt-2 mb-1 text-sm text-gray-400">Implied probability</div>
|
<div className="mt-2 mb-1 text-sm text-gray-400">Implied probability</div>
|
||||||
<Row>
|
<Row>
|
||||||
<div>{formatPercent(initialProb)}</div>
|
<div>{formatPercent(initialProb)}</div>
|
||||||
|
|
|
@ -22,7 +22,7 @@ export default function AddFundsPage() {
|
||||||
|
|
||||||
<Col className="items-center">
|
<Col className="items-center">
|
||||||
<Col>
|
<Col>
|
||||||
<Title text="Get Mantic Dollars" />
|
<Title text="Get Manifold Dollars" />
|
||||||
<Image
|
<Image
|
||||||
className="block mt-6"
|
className="block mt-6"
|
||||||
src="/praying-mantis-light.svg"
|
src="/praying-mantis-light.svg"
|
||||||
|
@ -31,7 +31,7 @@ export default function AddFundsPage() {
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="text-gray-500 mb-6">
|
<div className="text-gray-500 mb-6">
|
||||||
Use Mantic Dollars to trade in your favorite markets. <br /> (Not
|
Use Manifold Dollars to trade in your favorite markets. <br /> (Not
|
||||||
redeemable for cash.)
|
redeemable for cash.)
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user