added automatic resolution to contract overview

This commit is contained in:
Milli 2022-05-25 22:19:23 +02:00
parent a95b9909fe
commit f73883c29a

View File

@ -109,7 +109,7 @@ export function ContractDetails(props: {
}) {
const { contract, bets, isCreator, disabled } = props
const { closeTime, creatorName, creatorUsername } = contract
const { volumeLabel, resolvedDate } = contractMetrics(contract)
const { volumeLabel, automaticResolutionDate, resolvedDate } = contractMetrics(contract)
return (
<Row className="flex-1 flex-wrap items-center gap-x-4 gap-y-2 text-sm text-gray-500">
@ -164,6 +164,15 @@ export function ContractDetails(props: {
</Row>
)}
{!resolvedDate && contract.automaticResolutionTime && (
<DateTimeTooltip
text="Market automatically resolving:"
time={contract.automaticResolutionTime}
>
{automaticResolutionDate + ": " + contract.automaticResolution}
</DateTimeTooltip>
)}
<Row className="items-center gap-1">
<DatabaseIcon className="h-5 w-5" />