Merge branch 'experiment/tanstack' of https://git.odit.services/lfk/frontend into experiment/tanstack

This commit is contained in:
Philipp Dormann 2023-04-12 16:18:55 +02:00
commit 845737ee8e
Signed by: philipp
GPG Key ID: 3BB9ADD52DCA4314

View File

@ -22,22 +22,31 @@
},
{
accessorKey: "firstname",
header: () => "firstname",
header: () => $_('first-name'),
filterFn: `includesString`,
},
{
accessorKey: "lastname",
header: () => "lastname",
header: () => $_('last-name'),
filterFn: `includesString`,
},
{
accessorKey: "group.name",
header: () => "group",
accessorKey: "group",
header: () => $_('group'),
cell: (info) => {
const group = info.getValue();
if(group.responseType === "RUNNERORGANIZATION"){return group.name}
return `${group.parentGroup.name} > ${group.name}`
},
filterFn: `includesString`,
},
{
accessorKey: "distance",
header: () => "distance",
header: () => $_('distance'),
cell: (info) => {
if(info.getValue() < 1000){return `${info.getValue()} m`}
return `${(info.getValue() / 1000).toFixed(1)} km`
},
enableColumnFilter: false,
},
];