change position

This commit is contained in:
AmirHossein Mahmoodi
2025-05-31 15:04:05 +03:30
parent 1eb89c7c82
commit 6d33e9aa67
2 changed files with 32 additions and 32 deletions

View File

@@ -183,6 +183,25 @@ const OperatorList = () => {
grow: false,
size: 120,
},
{
accessorKey: "is_foreign",
header: "نوع ناوگان",
id: "is_foreign",
enableColumnFilter: true,
datatype: "numeric",
filterMode: "equals",
grow: false,
size: 100,
columnSelectOption: () => {
return foreginOptions.map((status) => ({
value: status.value,
label: status.label,
}));
},
Cell: ({ row }) => {
return <Typography variant={"body2"}>{row.original.is_foreign == "0" ? "داخلی" : "خارجی"}</Typography>;
},
},
{
accessorKey: "driver_name",
header: "نام راننده",
@@ -219,25 +238,6 @@ const OperatorList = () => {
grow: false,
size: 120,
},
{
accessorKey: "is_foreign",
header: "نوع ناوگان",
id: "is_foreign",
enableColumnFilter: true,
datatype: "numeric",
filterMode: "equals",
grow: false,
size: 100,
columnSelectOption: () => {
return foreginOptions.map((status) => ({
value: status.value,
label: status.label,
}));
},
Cell: ({ row }) => {
return <Typography variant={"body2"}>{row.original.is_foreign == "0" ? "داخلی" : "خارجی"}</Typography>;
},
},
{
accessorKey: "plaque",
header: "پلاک",