From 0386fc702b3995fdb7f9650b8a02e5f4997a3ef2 Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Wed, 3 Aug 2022 02:45:38 -0700 Subject: [PATCH] Remove some divs and so on --- web/components/avatar.tsx | 13 +++++-- web/components/feed/feed-bets.tsx | 64 +++++++++++++++---------------- 2 files changed, 40 insertions(+), 37 deletions(-) diff --git a/web/components/avatar.tsx b/web/components/avatar.tsx index 0436d61c..19b6066e 100644 --- a/web/components/avatar.tsx +++ b/web/components/avatar.tsx @@ -47,14 +47,21 @@ export function Avatar(props: { ) } -export function EmptyAvatar(props: { size?: number; multi?: boolean }) { - const { size = 8, multi } = props +export function EmptyAvatar(props: { + className?: string + size?: number + multi?: boolean +}) { + const { className, size = 8, multi } = props const insize = size - 3 const Icon = multi ? UsersIcon : UserIcon return (
diff --git a/web/components/feed/feed-bets.tsx b/web/components/feed/feed-bets.tsx index 29645136..84c678eb 100644 --- a/web/components/feed/feed-bets.tsx +++ b/web/components/feed/feed-bets.tsx @@ -36,38 +36,33 @@ export function FeedBet(props: { const isSelf = user?.id === userId return ( - <> - - {isSelf ? ( - - ) : bettor ? ( - - ) : ( -
- -
- )} -
- -
-
- + + {isSelf ? ( + + ) : bettor ? ( + + ) : ( + + )} + + ) } @@ -77,8 +72,9 @@ export function BetStatusText(props: { isSelf: boolean bettor?: User hideOutcome?: boolean + className?: string }) { - const { bet, contract, bettor, isSelf, hideOutcome } = props + const { bet, contract, bettor, isSelf, hideOutcome, className } = props const { outcomeType } = contract const isPseudoNumeric = outcomeType === 'PSEUDO_NUMERIC' const isFreeResponse = outcomeType === 'FREE_RESPONSE' @@ -123,7 +119,7 @@ export function BetStatusText(props: { : formatPercent(bet.limitProb ?? bet.probAfter) return ( -
+
{bettor ? ( ) : (