diff --git a/web/pages/admin.tsx b/web/pages/admin.tsx index d0346ee1..992d8bee 100644 --- a/web/pages/admin.tsx +++ b/web/pages/admin.tsx @@ -77,7 +77,6 @@ function ContractsTable() { let contracts = useContracts() ?? [] // Sort users by createdTime descending, by default contracts.sort((a, b) => b.createdTime - a.createdTime) - contracts = contracts.filter((contract) => !contract.isResolved) return ( cell, + formatter: (cell) => html(`
${cell}
`), }, { id: 'volume24Hours', - name: '24 hour vol', + name: '24h vol', formatter: (cell) => (cell as number).toFixed(0), }, + { + id: 'createdTime', + name: 'Created time', + formatter: (cell) => + html( + `${dayjs(cell as number).format( + 'MMM D, h:mma' + )}` + ), + }, { id: 'closeTime', name: 'Close time', @@ -112,6 +121,16 @@ function ContractsTable() { )}` ), }, + { + id: 'resolvedTime', + name: 'Resolved time', + formatter: (cell) => + html( + `${dayjs(cell as number).format( + 'MMM D, h:mma' + )}` + ), + }, { id: 'visibility', name: 'Visibility',