Replace '24h vol' with trending icon

This commit is contained in:
Austin Chen 2022-01-12 12:51:46 -05:00
parent 344ce69fee
commit 2df96cc0b5

View File

@ -8,6 +8,7 @@ import { Contract, compute, path } from '../lib/firebase/contracts'
import { Col } from './layout/col' import { Col } from './layout/col'
import { parseTags } from '../lib/util/parse' import { parseTags } from '../lib/util/parse'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import { TrendingUpIcon } from '@heroicons/react/solid'
export function ContractCard(props: { export function ContractCard(props: {
contract: Contract contract: Contract
@ -109,7 +110,8 @@ export function AbbrContractDetails(props: {
<div></div> <div></div>
{showHotVolume ? ( {showHotVolume ? (
<div className="whitespace-nowrap"> <div className="whitespace-nowrap">
{formatMoney(volume24Hours)} 24h vol <TrendingUpIcon className="h-5 w-5 text-gray-500 inline" />{' '}
{formatMoney(volume24Hours)}
</div> </div>
) : ( ) : (
<div className="whitespace-nowrap">{formatMoney(truePool)} pool</div> <div className="whitespace-nowrap">{formatMoney(truePool)} pool</div>