From 5d2e81f98248ccb0a1fb85ba2bdfe506b63b7cc9 Mon Sep 17 00:00:00 2001 From: jahooma Date: Thu, 16 Dec 2021 00:11:14 -0600 Subject: [PATCH] Simplify card --- web/components/bets-list.tsx | 2 +- web/components/contracts-list.tsx | 39 ++++++++++++------------------- 2 files changed, 16 insertions(+), 25 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index d2bb7d1d..4845f894 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -90,7 +90,7 @@ function MyContractBets(props: { contract: Contract; bets: Bet[] }) { const { resolution } = contract return ( -
+
diff --git a/web/components/contracts-list.tsx b/web/components/contracts-list.tsx index 0c26eef9..c5d0e9d0 100644 --- a/web/components/contracts-list.tsx +++ b/web/components/contracts-list.tsx @@ -1,5 +1,5 @@ import Link from 'next/link' -import { Col } from '../components/layout/col' +import clsx from 'clsx' import { Row } from '../components/layout/row' import { useEffect, useState } from 'react' import { @@ -26,7 +26,7 @@ export function ContractDetails(props: { contract: Contract }) { {resolvedDate ? `${createdDate} - ${resolvedDate}` : createdDate}
-
{formatMoney(volume)} bet
+
{formatMoney(volume)} volume
) } @@ -55,29 +55,20 @@ function ContractCard(props: { contract: Contract }) {
  • -
    - {/* Left side of card */} -
    -

    - {contract.question} -

    - + +

    + {contract.question} +

    +
    + {resolutionText || ( +
    + {probPercent} +
    chance
    +
    + )}
    - - {/* Right side of card */} - - - {resolutionText || ( -
    - {probPercent} -
    chance
    -
    - )} - - -
    + +