Implementing enum references for columns and filters

This commit is contained in:
2025-05-13 20:30:34 +02:00
parent 77fa4cde35
commit 0731ac3b6e
6 changed files with 23 additions and 6 deletions

View File

@@ -25,6 +25,8 @@ export const ContractRoutes = () => {
const ListContract = () => {
const columns = [
{ field: "label", column: { flex: 1 }},
{ field: "status", column: { width: 160 }},
{ field: "updated_at", column: { width: 160 }},
];
return <List<Contract> resource={`contracts`} schemaName={"Contract"} columns={columns} />
}