Free response: Show invested and payouts on market page, don't show payout if yes/no
This commit is contained in:
parent
c6eb729e46
commit
a680d80793
|
@ -358,22 +358,26 @@ export function MyBetsSummary(props: {
|
||||||
{formatMoney(expectation)}
|
{formatMoney(expectation)}
|
||||||
</div>
|
</div>
|
||||||
</Col> */}
|
</Col> */}
|
||||||
<Col>
|
{isBinary && (
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<>
|
||||||
Payout if <YesLabel />
|
<Col>
|
||||||
</div>
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
<div className="whitespace-nowrap">
|
Payout if <YesLabel />
|
||||||
{formatMoney(yesWinnings)}
|
</div>
|
||||||
</div>
|
<div className="whitespace-nowrap">
|
||||||
</Col>
|
{formatMoney(yesWinnings)}
|
||||||
<Col>
|
</div>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
</Col>
|
||||||
Payout if <NoLabel />
|
<Col>
|
||||||
</div>
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
<div className="whitespace-nowrap">
|
Payout if <NoLabel />
|
||||||
{formatMoney(noWinnings)}
|
</div>
|
||||||
</div>
|
<div className="whitespace-nowrap">
|
||||||
</Col>
|
{formatMoney(noWinnings)}
|
||||||
|
</div>
|
||||||
|
</Col>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<Col>
|
<Col>
|
||||||
<div className="whitespace-nowrap text-sm text-gray-500">
|
<div className="whitespace-nowrap text-sm text-gray-500">
|
||||||
{isBinary ? (
|
{isBinary ? (
|
||||||
|
|
|
@ -177,12 +177,8 @@ function BetsSection(props: {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Title className="px-2" text="Your trades" />
|
<Title className="px-2" text="Your trades" />
|
||||||
{isBinary && (
|
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
|
||||||
<>
|
<Spacer h={6} />
|
||||||
<MyBetsSummary className="px-2" contract={contract} bets={userBets} />
|
|
||||||
<Spacer h={6} />
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
<ContractBetsTable contract={contract} bets={userBets} />
|
<ContractBetsTable contract={contract} bets={userBets} />
|
||||||
<Spacer h={12} />
|
<Spacer h={12} />
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user