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() ?? []
|
let contracts = useContracts() ?? []
|
||||||
// Sort users by createdTime descending, by default
|
// Sort users by createdTime descending, by default
|
||||||
contracts.sort((a, b) => b.createdTime - a.createdTime)
|
contracts.sort((a, b) => b.createdTime - a.createdTime)
|
||||||
contracts = contracts.filter((contract) => !contract.isResolved)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Grid
|
<Grid
|
||||||
|
@ -95,13 +94,23 @@ function ContractsTable() {
|
||||||
{
|
{
|
||||||
id: 'question',
|
id: 'question',
|
||||||
name: 'Question',
|
name: 'Question',
|
||||||
formatter: (cell) => cell,
|
formatter: (cell) => html(`<div class="w-60">${cell}</div>`),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 'volume24Hours',
|
id: 'volume24Hours',
|
||||||
name: '24 hour vol',
|
name: '24h vol',
|
||||||
formatter: (cell) => (cell as number).toFixed(0),
|
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',
|
id: 'closeTime',
|
||||||
name: 'Close time',
|
name: 'Close time',
|
||||||
|
@ -112,6 +121,16 @@ function ContractsTable() {
|
||||||
)}</span>`
|
)}</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',
|
id: 'visibility',
|
||||||
name: 'Visibility',
|
name: 'Visibility',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user