Merge branch 'experiment/tanstack' of https://git.odit.services/lfk/frontend into experiment/tanstack
This commit is contained in:
		@@ -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,
 | 
			
		||||
    },
 | 
			
		||||
  ];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user