added automatic resolution to contract overview
This commit is contained in:
		
							parent
							
								
									a95b9909fe
								
							
						
					
					
						commit
						f73883c29a
					
				|  | @ -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" /> | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user