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 { contract, bets, isCreator, disabled } = props | ||||||
|   const { closeTime, creatorName, creatorUsername } = contract |   const { closeTime, creatorName, creatorUsername } = contract | ||||||
|   const { volumeLabel, resolvedDate } = contractMetrics(contract) |   const { volumeLabel, automaticResolutionDate, resolvedDate } = contractMetrics(contract) | ||||||
| 
 | 
 | ||||||
|   return ( |   return ( | ||||||
|     <Row className="flex-1 flex-wrap items-center gap-x-4 gap-y-2 text-sm text-gray-500"> |     <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> |         </Row> | ||||||
|       )} |       )} | ||||||
| 
 | 
 | ||||||
|  |       {!resolvedDate && contract.automaticResolutionTime && ( | ||||||
|  |         <DateTimeTooltip | ||||||
|  |         text="Market automatically resolving:" | ||||||
|  |         time={contract.automaticResolutionTime} | ||||||
|  |       > | ||||||
|  |         {automaticResolutionDate + ": " + contract.automaticResolution} | ||||||
|  |       </DateTimeTooltip> | ||||||
|  |       )} | ||||||
|  | 
 | ||||||
|       <Row className="items-center gap-1"> |       <Row className="items-center gap-1"> | ||||||
|         <DatabaseIcon className="h-5 w-5" /> |         <DatabaseIcon className="h-5 w-5" /> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user