diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx index 0115c746..438eb3ec 100644 --- a/web/components/contract/contract-details.tsx +++ b/web/components/contract/contract-details.tsx @@ -1,13 +1,9 @@ -import clsx from 'clsx' import { ClockIcon, DatabaseIcon, PencilIcon, - CurrencyDollarIcon, TrendingUpIcon, - StarIcon, } from '@heroicons/react/outline' -import { StarIcon as SolidStarIcon } from '@heroicons/react/solid' import { Row } from '../layout/row' import { formatMoney } from 'common/util/format' import { UserLink } from '../user-page' @@ -17,7 +13,6 @@ import { contractPool, updateContract, } from 'web/lib/firebase/contracts' -import { Col } from '../layout/col' import dayjs from 'dayjs' import { DateTimeTooltip } from '../datetime-tooltip' import { fromNow } from 'web/lib/util/time' @@ -36,7 +31,6 @@ export function MiscDetails(props: { }) { const { contract, showHotVolume, showCloseTime } = props const { volume, volume24Hours, closeTime, tags } = contract - const { volumeLabel } = contractMetrics(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) diff --git a/web/components/contract/contract-info-dialog.tsx b/web/components/contract/contract-info-dialog.tsx index 28cd91f4..446d04e7 100644 --- a/web/components/contract/contract-info-dialog.tsx +++ b/web/components/contract/contract-info-dialog.tsx @@ -1,14 +1,13 @@ import { DotsHorizontalIcon } from '@heroicons/react/outline' import clsx from 'clsx' import dayjs from 'dayjs' -import { uniqBy, sum } from 'lodash' +import { uniqBy } from 'lodash' import { useState } from 'react' import { Bet } from 'common/bet' import { Contract } from 'common/contract' import { formatMoney } from 'common/util/format' import { - contractMetrics, contractPath, contractPool, getBinaryProbPercent,