diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 68b9e59e..403427eb 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -8,6 +8,7 @@ import { User } from '../lib/firebase/users' import { formatMoney, formatPercent } from '../lib/util/format' import { Col } from './layout/col' import { ContractDetails } from './contracts-list' +import { Spacer } from './layout/spacer' export function BetsList(props: { user: User }) { const { user } = props @@ -22,9 +23,9 @@ export function BetsList(props: { user: User }) { const contractBets = _.groupBy(bets, 'contractId') return ( - + {Object.keys(contractBets).map((contractId) => ( - return ( -
-

{contract.question}

- -
    - {bets.map((bet) => ( - - ))} -
+
+ + +

+ {contract.question} +

+ +
+ + +
+ + + + + + + + + + + + {bets.map((bet) => ( + + ))} + +
OutcomeAmountProbabilityEstimated payoffDate
+
) } -function BetCard(props: { bet: Bet }) { +function BetRow(props: { bet: Bet }) { const { bet } = props - const { contractId, amount, outcome, createdTime, probBefore, probAfter } = - bet + const { amount, outcome, createdTime, probBefore, probAfter, dpmWeight } = bet return ( - - -
  • -
    -
    - -

    - {formatMoney(amount)} on {outcome} -

    -

    - {formatPercent(probBefore)} → {formatPercent(probAfter)} -

    -

    - {dayjs(createdTime).format('MMM D, H:mma')} -

    - -
    -
    -
  • -
    - + + {outcome} + {formatMoney(amount)} + + {formatPercent(probBefore)} → {formatPercent(probAfter)} + + {formatMoney(amount + dpmWeight)} + {dayjs(createdTime).format('MMM D, H:mma')} + ) }