diff --git a/web/components/contract/contract-card.tsx b/web/components/contract/contract-card.tsx index d1c7dd31..8f287bdf 100644 --- a/web/components/contract/contract-card.tsx +++ b/web/components/contract/contract-card.tsx @@ -9,7 +9,6 @@ import { getBinaryProbPercent, } from 'web/lib/firebase/contracts' import { Col } from '../layout/col' -import { Spacer } from '../layout/spacer' import { Binary, CPMM, @@ -25,6 +24,8 @@ import { } from '../outcome-label' import { getOutcomeProbability, getTopAnswer } from 'common/calculate' import { AbbrContractDetails } from './contract-details' +import { TagsList } from '../tags-list' +import { CATEGORY_LIST } from 'common/categories' export function ContractCard(props: { contract: Contract @@ -35,11 +36,16 @@ export function ContractCard(props: { const { contract, showHotVolume, showCloseTime, className } = props const { question, outcomeType, resolution } = contract + const { tags } = contract + const categories = tags.filter((tag) => + CATEGORY_LIST.includes(tag.toLowerCase()) + ) + return (
- {question} -
++ {question} +
+ {outcomeType !== 'FREE_RESPONSE' && categories.length > 0 && ( +