Fix showcase DataTable columns

This commit is contained in:
Mats Bosson 2026-03-30 03:49:41 +07:00
parent ac1306edd9
commit b76755de76

View File

@ -18,9 +18,9 @@ const people: Person[] = [
];
const tableColumns = [
{ id: "name", header: "Name", sortable: true, accessor: (r: Person) => r.name },
{ id: "role", header: "Role", sortable: true, accessor: (r: Person) => r.role },
{ id: "status", header: "Status", sortable: false, accessor: (r: Person) => r.status },
{ id: "name", header: "Name", sortable: true, cell: (r: Person) => <span>{r.name}</span> },
{ id: "role", header: "Role", sortable: true, cell: (r: Person) => <span>{r.role}</span> },
{ id: "status", header: "Status", sortable: false, cell: (r: Person) => <span>{r.status}</span> },
];
/** Calendar demo showing a navigable month grid. */