From a63e119b97bb337015f570afb3aa4a8c76dd0f1c Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Tue, 20 May 2025 14:05:34 +0330 Subject: [PATCH] change position columns --- .../damages/operator/OperatorList.jsx | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/dashboard/damages/operator/OperatorList.jsx b/src/components/dashboard/damages/operator/OperatorList.jsx index 2c07053..36e4b47 100644 --- a/src/components/dashboard/damages/operator/OperatorList.jsx +++ b/src/components/dashboard/damages/operator/OperatorList.jsx @@ -39,6 +39,25 @@ const OperatorList = () => { grow: false, size: 100, }, + { + accessorKey: "status", + header: "وضعیت", + id: "status", + enableColumnFilter: true, + datatype: "numeric", + filterMode: "equals", + grow: false, + size: 100, + columnSelectOption: () => { + return statusOptions.map((status) => ({ + value: status.value, + label: status.label, + })); + }, + Cell: ({ row }) => { + return {row.original.status_fa}; + }, + }, { header: "اطلاعات تصادف", id: "accidentInfo", @@ -422,25 +441,6 @@ const OperatorList = () => { grow: false, size: 100, }, - { - accessorKey: "status", - header: "وضعیت", - id: "status", - enableColumnFilter: true, - datatype: "numeric", - filterMode: "equals", - grow: false, - size: 100, - columnSelectOption: () => { - return statusOptions.map((status) => ({ - value: status.value, - label: status.label, - })); - }, - Cell: ({ row }) => { - return {row.original.status_fa}; - }, - }, ]; }, []); @@ -456,7 +456,7 @@ const OperatorList = () => { sorting={[{ id: "id", desc: true }]} TableToolbar={Toolbar} enableRowActions - positionActionsColumn={"last"} + positionActionsColumn={"first"} RowActions={RowActions} />