Show resolved markets on Admin page; show create & resolve times
This commit is contained in:
parent
1b5e33ca54
commit
9457ac9337
|
@ -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 (
|
||||
<Grid
|
||||
|
@ -95,13 +94,23 @@ function ContractsTable() {
|
|||
{
|
||||
id: 'question',
|
||||
name: 'Question',
|
||||
formatter: (cell) => cell,
|
||||
formatter: (cell) => html(`<div class="w-60">${cell}</div>`),
|
||||
},
|
||||
{
|
||||
id: 'volume24Hours',
|
||||
name: '24 hour vol',
|
||||
name: '24h vol',
|
||||
formatter: (cell) => (cell as number).toFixed(0),
|
||||
},
|
||||
{
|
||||
id: 'createdTime',
|
||||
name: 'Created time',
|
||||
formatter: (cell) =>
|
||||
html(
|
||||
`<span class="whitespace-nowrap">${dayjs(cell as number).format(
|
||||
'MMM D, h:mma'
|
||||
)}</span>`
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'closeTime',
|
||||
name: 'Close time',
|
||||
|
@ -112,6 +121,16 @@ function ContractsTable() {
|
|||
)}</span>`
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'resolvedTime',
|
||||
name: 'Resolved time',
|
||||
formatter: (cell) =>
|
||||
html(
|
||||
`<span class="whitespace-nowrap">${dayjs(cell as number).format(
|
||||
'MMM D, h:mma'
|
||||
)}</span>`
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'visibility',
|
||||
name: 'Visibility',
|
||||
|
|
Loading…
Reference in New Issue
Block a user