From b3f02593f387d3fb0d512299504731345737afe2 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 24 Dec 2023 13:45:13 +0330 Subject: [PATCH 1/3] 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/3] 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", From 0647d02e8f24afa03154ca141abd43097e668d19 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Sun, 24 Dec 2023 14:35:12 +0330 Subject: [PATCH 3/3] change version --- example.env.local | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example.env.local b/example.env.local index 4be359a..9715afe 100644 --- a/example.env.local +++ b/example.env.local @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "1.25.4" +NEXT_PUBLIC_API_VERSION = "1.25.6" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"