From dcd654228a84090eeb540e30b7c1f2e272813674 Mon Sep 17 00:00:00 2001 From: Sinclair Chen Date: Fri, 19 Aug 2022 15:22:28 -0700 Subject: [PATCH] refactor. make title in dialog less big --- web/components/bets-list.tsx | 7 +++---- web/components/contract/contract-card.tsx | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/web/components/bets-list.tsx b/web/components/bets-list.tsx index e8d85dba..c3058a45 100644 --- a/web/components/bets-list.tsx +++ b/web/components/bets-list.tsx @@ -534,9 +534,8 @@ export function ContractBetsTable(props: { contract: Contract bets: Bet[] isYourBets: boolean - className?: string }) { - const { contract, className, isYourBets } = props + const { contract, isYourBets } = props const bets = sortBy( props.bets.filter((b) => !b.isAnte && b.amount !== 0), @@ -568,7 +567,7 @@ export function ContractBetsTable(props: { const unfilledBets = useUnfilledBets(contract.id) ?? [] return ( -
+
{amountRedeemed > 0 && ( <>
@@ -771,7 +770,7 @@ function SellButton(props: { setIsSubmitting(false) }} > -
+
Sell {formatWithCommas(shares)} shares of{' '} {' '} for {formatMoney(saleAmount)}? diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index c3bf1a31..090020e0 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -120,7 +120,7 @@ export function ContractCard(props: { truncate={'long'} /> ) : ( - + ))} {showQuickBet ? ( @@ -230,10 +230,9 @@ export function BinaryResolutionOrChance(props: { function FreeResponseTopAnswer(props: { contract: FreeResponseContract | MultipleChoiceContract - truncate: 'short' | 'long' | 'none' className?: string }) { - const { contract, truncate } = props + const { contract } = props const topAnswer = getTopAnswer(contract) @@ -241,7 +240,7 @@ function FreeResponseTopAnswer(props: { ) : null }