change name columns

This commit is contained in:
2025-04-09 16:39:29 +03:30
parent 171ac58344
commit 402630a301
10 changed files with 101 additions and 24 deletions

View File

@@ -48,9 +48,19 @@ function DashboardPassengerOfficeComponent() {
Cell: ({ renderedCellValue }) => <Typography variant="body2">{renderedCellValue}</Typography>,
},
{
accessorFn: (row) => row.name,
id: "name",
header: t("PassengerBoss.name"),
accessorFn: (row) => row.first_name,
id: "first_name",
header: t("PassengerBoss.first_name"),
enableColumnFilter: true,
datatype: "text",
filterFn: "contains",
columnFilterModeOptions: ["contains", "equals", "notEquals"],
Cell: ({ renderedCellValue }) => <Typography variant="body2">{renderedCellValue}</Typography>,
},
{
accessorFn: (row) => row.last_name,
id: "last_name",
header: t("PassengerBoss.last_name"),
enableColumnFilter: true,
datatype: "text",
filterFn: "contains",