Admin contracts tabel: Add visibility column, filter out resolved

This commit is contained in:
jahooma 2022-01-18 16:29:49 -06:00
parent aa164cd5f5
commit d3031e0f10

View File

@ -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',