From b3f02593f387d3fb0d512299504731345737afe2 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 24 Dec 2023 13:45:13 +0330 Subject: [PATCH 1/2] add province column and filter --- public/locales/fa/app.json | 1 + src/components/dashboard/loan-history/index.jsx | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index 4e26061..f1d29a0 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -555,6 +555,7 @@ "vehicle_type": "نوع ماشین", "state_name": "وضعیت درخواست", "history": "تاریخچه", + "province_name": "استان", "Table_history_error": "خطا در دریافت اطلاعات", "history_report": "فایل ضمیمه", "Table_head_name": "نام", diff --git a/src/components/dashboard/loan-history/index.jsx b/src/components/dashboard/loan-history/index.jsx index 66f28de..6e256df 100644 --- a/src/components/dashboard/loan-history/index.jsx +++ b/src/components/dashboard/loan-history/index.jsx @@ -167,6 +167,18 @@ function DashboardLoanHistoryComponent() { {renderedCellValue} ), }, + { + accessorFn: (row) => row.province_name, + id: "province_name", + header: t("LoanHistory.province_name"), + enableColumnFilter: true, + datatype: "text", + filterFn: "contains", + columnFilterModeOptions: ["contains", "equals", "notEquals"], + Cell: ({renderedCellValue}) => ( + {renderedCellValue} + ), + }, { accessorFn: (row) => row.vehicle_type, id: "vehicle_type", From 37317469bf5cd548b011b09b241e2d9c20c0af74 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 24 Dec 2023 14:17:31 +0330 Subject: [PATCH 2/2] delete update row in loan history --- src/components/dashboard/loan-history/index.jsx | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/components/dashboard/loan-history/index.jsx b/src/components/dashboard/loan-history/index.jsx index 6e256df..dd536ed 100644 --- a/src/components/dashboard/loan-history/index.jsx +++ b/src/components/dashboard/loan-history/index.jsx @@ -137,17 +137,6 @@ function DashboardLoanHistoryComponent() { ); }, }, - { - accessorFn: (row) => - moment(row.updated_at).locale("fa").format("HH:mm | yyyy/MM/DD"), - id: "updated_at", - header: t("LoanHistory.updated_at"), - enableColumnFilter: false, - datatype: "numeric", - Cell: ({renderedCellValue}) => ( - {renderedCellValue} - ), - }, { accessorFn: (row) => row.navgan_id, id: "navgan_id",