From 7066084c98ab4de40a20c1e18277852fe9617a74 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Sun, 14 Jan 2024 15:54:09 +0330 Subject: [PATCH] add description column on loan history form --- package.json | 2 +- public/locales/fa/app.json | 1 + .../dashboard/loan-history/Form/HistoryForm/TableContent.jsx | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c03278c..33261ac 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dayjs": "^1.11.9", "eslint": "8.36.0", "file-saver": "^2.0.5", - "formik": "^2.2.9", + "formik": "^2.4.5", "fs-extra": "^11.1.1", "image-resize": "^1.3.2", "image-to-file-converter": "^1.0.6", diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json index 1cfa2f8..711f9c0 100644 --- a/public/locales/fa/app.json +++ b/public/locales/fa/app.json @@ -663,6 +663,7 @@ "Table_head_position": "سمت", "Table_head_action": "عملیات", "Table_head_file": "فایل پیوست", + "Table_head_expert_description": "توضیحات", "empty_history_detail": "سابقه ای برای این وام وجود ندارد" } } \ No newline at end of file diff --git a/src/components/dashboard/loan-history/Form/HistoryForm/TableContent.jsx b/src/components/dashboard/loan-history/Form/HistoryForm/TableContent.jsx index 34b1529..e71c6c5 100644 --- a/src/components/dashboard/loan-history/Form/HistoryForm/TableContent.jsx +++ b/src/components/dashboard/loan-history/Form/HistoryForm/TableContent.jsx @@ -69,6 +69,7 @@ const TableContent = ({rowId}) => { {t("LoanHistory.Table_head_date")} {t("LoanHistory.Table_head_position")} {t("LoanHistory.Table_head_action")} + {t("LoanHistory.Table_head_expert_description")} {t("LoanHistory.Table_head_file")} @@ -82,12 +83,13 @@ const TableContent = ({rowId}) => { '&:last-child td, &:last-child th': {border: 0} }} > - + {latest_history.expert.name} {moment(latest_history.created_at).locale("fa").format("HH:mm | yyyy/MM/DD")} {latest_history.expert.position} {latest_history.previous_state_name} + {latest_history.expert_description} {latest_history.attachment ? (