From 5279f468f35397d092862e8af1d592571ebbdd4a Mon Sep 17 00:00:00 2001 From: Marshall Polaris Date: Fri, 12 Aug 2022 15:49:39 -0700 Subject: [PATCH] Remove random unnecessary top-level divs --- web/components/contract/contract-card.tsx | 210 +++++++++++----------- 1 file changed, 103 insertions(+), 107 deletions(-) diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index ac1a2fa2..99aa43bb 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -66,115 +66,111 @@ export function ContractCard(props: { !hideQuickBet return ( -
- - - -
- {onClick ? ( - { - // Let the browser handle the link click (opens in new tab). - if (e.ctrlKey || e.metaKey) return - - e.preventDefault() - track('click market card', { - slug: contract.slug, - contractId: contract.id, - }) - onClick() - }} - /> - ) : ( - - - - )} -
- -

- {question} -

- - {(outcomeType === 'FREE_RESPONSE' || - outcomeType === 'MULTIPLE_CHOICE') && - (resolution ? ( - - ) : ( - - ))} - - - - {showQuickBet ? ( - - ) : ( - - {outcomeType === 'BINARY' && ( - - )} - - {outcomeType === 'PSEUDO_NUMERIC' && ( - - )} - - {outcomeType === 'NUMERIC' && ( - - )} - - {(outcomeType === 'FREE_RESPONSE' || - outcomeType === 'MULTIPLE_CHOICE') && ( - - )} - - + + +
+ > + {onClick ? ( + { + // Let the browser handle the link click (opens in new tab). + if (e.ctrlKey || e.metaKey) return + + e.preventDefault() + track('click market card', { + slug: contract.slug, + contractId: contract.id, + }) + onClick() + }} + /> + ) : ( + + + + )} +
+ +

+ {question} +

+ + {(outcomeType === 'FREE_RESPONSE' || + outcomeType === 'MULTIPLE_CHOICE') && + (resolution ? ( + + ) : ( + + ))} + + -
+ {showQuickBet ? ( + + ) : ( + + {outcomeType === 'BINARY' && ( + + )} + + {outcomeType === 'PSEUDO_NUMERIC' && ( + + )} + + {outcomeType === 'NUMERIC' && ( + + )} + + {(outcomeType === 'FREE_RESPONSE' || + outcomeType === 'MULTIPLE_CHOICE') && ( + + )} + + + )} + ) }