From ec516ee41f9e5a54c024da0e4956f1730e0bbf95 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 16 Dec 2021 01:03:41 -0800 Subject: [PATCH] Move bet payouts to the top right of the card --- web/components/bets-list.tsx | 51 +++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 24 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index 4845f894..b3a462f2 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -91,35 +91,38 @@ function MyContractBets(props: { contract: Contract; bets: Bet[] }) { return (
- - -
- {contract.question} -
-
- + + + + +
+ {contract.question} +
+
+ - -
- -
- {resolution && ( - <> -
+
- Resolved {resolution === 'YES' && } - {resolution === 'NO' && } - {resolution === 'CANCEL' && } +
- - )} + {resolution && ( + <> +
+
+ Resolved {resolution === 'YES' && } + {resolution === 'NO' && } + {resolution === 'CANCEL' && } +
+ + )} +
+ + + {/* Show this at the end of the flex */} +
- - - - - +