Remove another wrapper in ContractCard

This commit is contained in:
Marshall Polaris 2022-08-12 16:28:26 -07:00
parent 2c81295d24
commit cc88eb4638

View File

@ -137,24 +137,24 @@ export function ContractCard(props: {
{showQuickBet ? ( {showQuickBet ? (
<QuickBet contract={contract} user={user} /> <QuickBet contract={contract} user={user} />
) : ( ) : (
<Col className="m-auto pl-2"> <>
{outcomeType === 'BINARY' && ( {outcomeType === 'BINARY' && (
<BinaryResolutionOrChance <BinaryResolutionOrChance
className="items-center" className="items-center self-center"
contract={contract} contract={contract}
/> />
)} )}
{outcomeType === 'PSEUDO_NUMERIC' && ( {outcomeType === 'PSEUDO_NUMERIC' && (
<PseudoNumericResolutionOrExpectation <PseudoNumericResolutionOrExpectation
className="items-center" className="items-center self-center"
contract={contract} contract={contract}
/> />
)} )}
{outcomeType === 'NUMERIC' && ( {outcomeType === 'NUMERIC' && (
<NumericResolutionOrExpectation <NumericResolutionOrExpectation
className="items-center" className="items-center self-center"
contract={contract} contract={contract}
/> />
)} )}
@ -162,13 +162,13 @@ export function ContractCard(props: {
{(outcomeType === 'FREE_RESPONSE' || {(outcomeType === 'FREE_RESPONSE' ||
outcomeType === 'MULTIPLE_CHOICE') && ( outcomeType === 'MULTIPLE_CHOICE') && (
<FreeResponseResolutionOrChance <FreeResponseResolutionOrChance
className="self-end text-gray-600" className="items-center self-center text-gray-600"
contract={contract} contract={contract}
truncate="long" truncate="long"
/> />
)} )}
<ProbBar contract={contract} /> <ProbBar contract={contract} />
</Col> </>
)} )}
</Row> </Row>
) )