fix: sorting only by dates in active work shifts table

This commit is contained in:
2024-11-20 13:30:57 +04:00
parent 39f746f435
commit 165a9f5bfb
2 changed files with 5 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ export const useActiveShiftsTableColumns = () => {
() => [
{
header: "Начало смены",
accessorKey: "startedAt",
Cell: ({ row }) =>
new Date(row.original.startedAt).toLocaleString("ru-RU"),
},
@@ -18,10 +19,12 @@ export const useActiveShiftsTableColumns = () => {
{
header: "Роль",
accessorKey: "user.role.name",
enableSorting: false,
},
{
header: "Должность",
accessorKey: "user.position.name",
enableSorting: false,
}
],
[]