Stop hardcoding quick bet size

This commit is contained in:
Austin Chen 2022-06-15 09:05:26 -07:00
parent d010ec17c0
commit 0f5401f82d

View File

@ -159,7 +159,7 @@ export function QuickBet(props: { contract: Contract; user: User }) {
onClick={() => placeQuickBet('UP')} onClick={() => placeQuickBet('UP')}
/> />
<div className="mt-2 text-center text-xs text-transparent peer-hover:text-gray-400"> <div className="mt-2 text-center text-xs text-transparent peer-hover:text-gray-400">
{formatMoney(10)} {formatMoney(BET_SIZE)}
</div> </div>
{hasUpShares > 0 ? ( {hasUpShares > 0 ? (
@ -213,7 +213,7 @@ export function QuickBet(props: { contract: Contract; user: User }) {
/> />
)} )}
<div className="mb-2 text-center text-xs text-transparent peer-hover:text-gray-400"> <div className="mb-2 text-center text-xs text-transparent peer-hover:text-gray-400">
{formatMoney(10)} {formatMoney(BET_SIZE)}
</div> </div>
</div> </div>
)} )}