+
{formatLargeNumber(getExpectedValue(contract))}
-
expected
+
expected
>
)}
diff --git a/web/components/contract/contract-details.tsx b/web/components/contract/contract-details.tsx
index 6a8f5c9f..fd5e6968 100644
--- a/web/components/contract/contract-details.tsx
+++ b/web/components/contract/contract-details.tsx
@@ -5,7 +5,9 @@ import {
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'
@@ -26,20 +28,13 @@ import NewContractBadge from '../new-contract-badge'
import { CATEGORY_LIST } from 'common/categories'
import { TagsList } from '../tags-list'
-export function AbbrContractDetails(props: {
+export function MiscDetails(props: {
contract: Contract
showHotVolume?: boolean
showCloseTime?: boolean
}) {
const { contract, showHotVolume, showCloseTime } = props
- const {
- volume,
- volume24Hours,
- creatorName,
- creatorUsername,
- closeTime,
- tags,
- } = contract
+ 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) =>
@@ -47,39 +42,68 @@ export function AbbrContractDetails(props: {
).slice(0, 1)
return (
-
+
+ {contract.createdTime % 3 == 1 ? (
+
+ ) : (
+
+ )}
+
+ {categories.length > 0 && (
+
+ )}
+
+ {showHotVolume ? (
+
+ {formatMoney(volume24Hours)}
+
+ ) : showCloseTime ? (
+
+
+ {(closeTime || 0) < Date.now() ? 'Closed' : 'Closes'}{' '}
+ {fromNow(closeTime || 0)}
+
+ ) : volume > 0 ? (
+ {volumeLabel}
+ ) : (
+
+ )}
+
+ )
+}
+
+export function AvatarDetails(props: { contract: Contract }) {
+ const { contract } = props
+ const { creatorName, creatorUsername } = contract
+
+ return (
+
+
+
+
+ )
+}
+
+export function AbbrContractDetails(props: {
+ contract: Contract
+ showHotVolume?: boolean
+ showCloseTime?: boolean
+}) {
+ const { contract, showHotVolume, showCloseTime } = props
+ return (
+
-
-
-
-
+
-
- {categories.length > 0 && (
-
- )}
-
- {showHotVolume ? (
-
- {' '}
- {formatMoney(volume24Hours)}
-
- ) : showCloseTime ? (
-
-
- {(closeTime || 0) < Date.now() ? 'Closed' : 'Closes'}{' '}
- {fromNow(closeTime || 0)}
-
- ) : volume > 0 ? (
- {volumeLabel}
- ) : (
-
- )}
-
+
)
@@ -93,7 +117,7 @@ export function ContractDetails(props: {
}) {
const { contract, bets, isCreator, disabled } = props
const { closeTime, creatorName, creatorUsername } = contract
- const { volumeLabel, createdDate, resolvedDate } = contractMetrics(contract)
+ const { volumeLabel, resolvedDate } = contractMetrics(contract)
return (