Show balance in bet panel
This commit is contained in:
parent
c0ec7ff3f1
commit
c3bfe6b058
|
@ -98,6 +98,14 @@ export function BetPanel(props: { contract: Contract; className?: string }) {
|
||||||
onSelect={(choice) => onBetChoice(choice)}
|
onSelect={(choice) => onBetChoice(choice)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{user && (
|
||||||
|
<>
|
||||||
|
<Spacer h={4} />
|
||||||
|
<div className="pt-2 pb-1 text-sm text-gray-500">Your balance</div>
|
||||||
|
<div className="text-gray-500 p-2">{formatMoney(user.balance)}</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
<Spacer h={4} />
|
<Spacer h={4} />
|
||||||
|
|
||||||
<div className="pt-2 pb-1 text-sm text-gray-500">Bet amount</div>
|
<div className="pt-2 pb-1 text-sm text-gray-500">Bet amount</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user