Change card to show volume instead of pool

This commit is contained in:
James Grugett 2022-07-23 15:23:47 -05:00
parent 71b20eb61a
commit f43df42449

View File

@ -55,10 +55,6 @@ export function MiscDetails(props: {
groupLinks, groupLinks,
} = contract } = contract
// Show at most one category that this contract is tagged by
// const categories = CATEGORY_LIST.filter((category) =>
// tags.map((t) => t.toLowerCase()).includes(category)
// ).slice(0, 1)
const isNew = createdTime > Date.now() - DAY_MS && !isResolved const isNew = createdTime > Date.now() - DAY_MS && !isResolved
return ( return (
@ -80,14 +76,11 @@ export function MiscDetails(props: {
{fromNow(resolutionTime || 0)} {fromNow(resolutionTime || 0)}
</Row> </Row>
) : volume > 0 || !isNew ? ( ) : volume > 0 || !isNew ? (
<Row className={'shrink-0'}>{contractPool(contract)} pool</Row> <Row className={'shrink-0'}>{formatMoney(contract.volume)} bet</Row>
) : ( ) : (
<NewContractBadge /> <NewContractBadge />
)} )}
{/*{categories.length > 0 && (*/}
{/* <TagsList className="text-gray-400" tags={categories} noLabel />*/}
{/*)}*/}
{groupLinks && groupLinks.length > 0 && ( {groupLinks && groupLinks.length > 0 && (
<SiteLink <SiteLink
href={groupPath(groupLinks[0].slug)} href={groupPath(groupLinks[0].slug)}