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() ?? []
|
||||
// Sort users by createdTime descending, by default
|
||||
contracts.sort((a, b) => b.createdTime - a.createdTime)
|
||||
contracts = contracts.filter((contract) => !contract.isResolved)
|
||||
|
||||
return (
|
||||
<Grid
|
||||
|
@ -111,6 +112,11 @@ function ContractsTable() {
|
|||
)}</span>`
|
||||
),
|
||||
},
|
||||
{
|
||||
id: 'visibility',
|
||||
name: 'Visibility',
|
||||
formatter: (cell) => cell,
|
||||
},
|
||||
{
|
||||
id: 'id',
|
||||
name: 'ID',
|
||||
|
|
Loading…
Reference in New Issue
Block a user