From 858ce10b498c078f9feef468a89e4ba7d01d8cac Mon Sep 17 00:00:00 2001 From: James Grugett Date: Mon, 21 Feb 2022 14:22:36 -0600 Subject: [PATCH] Re-order sell button and sale price to be first in bets table --- web/components/bets-list.tsx | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index a8abc5f5..aaa6a0cf 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -409,19 +409,18 @@ export function ContractBetsTable(props: { ) const { isResolved } = contract - return (
- + + - - + @@ -471,7 +470,12 @@ function BetRow(props: { bet: Bet; contract: Contract; saleBet?: Bet }) { return ( - + + @@ -480,13 +484,7 @@ function BetRow(props: { bet: Bet; contract: Contract; saleBet?: Bet }) { {formatPercent(probBefore)} → {formatPercent(probAfter)} - - - {!isResolved && !isClosed && !isSold && !isAnte && ( - - )} + ) }
Date{isResolved ? <>Payout : <>Sale price} Outcome Amount Probability Shares{isResolved ? <>Payout : <>Sale price}Date
{dayjs(createdTime).format('MMM D, h:mma')} + {!isResolved && !isClosed && !isSold && !isAnte && ( + + )} + {saleDisplay} {formatWithCommas(shares)}{saleDisplay} - - {dayjs(createdTime).format('MMM D, h:mma')}