Admin contracts tabel: Add visibility column, filter out resolved
This commit is contained in:
parent
aa164cd5f5
commit
d3031e0f10
|
@ -77,6 +77,7 @@ 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
|
||||||
|
@ -111,6 +112,11 @@ function ContractsTable() {
|
||||||
)}</span>`
|
)}</span>`
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'visibility',
|
||||||
|
name: 'Visibility',
|
||||||
|
formatter: (cell) => cell,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'id',
|
id: 'id',
|
||||||
name: 'ID',
|
name: 'ID',
|
||||||
|
|
Loading…
Reference in New Issue
Block a user