cleanup headers

This commit is contained in:
Philipp Dormann 2023-04-12 15:52:13 +02:00
parent 45a7a90cb8
commit 5ecf838dd2
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -14,42 +14,41 @@
accessorKey: "id",
header: () => "id",
},
{
header: "Name",
footer: (props) => props.column.id,
columns: [
{
accessorKey: "firstname",
cell: (info) => info.getValue(),
footer: (props) => props.column.id,
},
{
accessorFn: (row) => row.lastname,
id: "lastname",
cell: (info) => info.getValue(),
header: () => "Nachname",
footer: (props) => props.column.id,
},
{
accessorFn: (row) => `${row.firstname} ${row.lastname}`,
id: "fullname",
header: "Voller Name",
cell: (info) => info.getValue(),
// footer: (props) => props.column.id,
// filterFn: "fuzzy",
// sortingFn: fuzzySort,
},
],
},
// {
// accessorKey: "firstname",
// header: () => "firstname",
// header: "Name",
// footer: (props) => props.column.id,
// columns: [
// {
// accessorKey: "firstname",
// cell: (info) => info.getValue(),
// footer: (props) => props.column.id,
// },
// {
// accessorFn: (row) => row.lastname,
// id: "lastname",
// cell: (info) => info.getValue(),
// header: () => "Nachname",
// footer: (props) => props.column.id,
// },
// {
// accessorFn: (row) => `${row.firstname} ${row.lastname}`,
// id: "fullname",
// header: "Voller Name",
// cell: (info) => info.getValue(),
// // footer: (props) => props.column.id,
// // filterFn: "fuzzy",
// // sortingFn: fuzzySort,
// },
// ],
// },
// {
// accessorKey: "lastname",
// header: () => "lastname",
// }
// ,
{
accessorKey: "firstname",
header: () => "firstname",
},
{
accessorKey: "lastname",
header: () => "lastname",
},
{
accessorKey: "group.name",
header: () => "group",