diff --git a/public/locales/fa/app.json b/public/locales/fa/app.json
index 7f2f162..e2e5105 100644
--- a/public/locales/fa/app.json
+++ b/public/locales/fa/app.json
@@ -278,6 +278,7 @@
"created_at": "تاریخ درخواست",
"updated_at": "تاریخ بروزرسانی",
"navgan_id": "کد ناوگان",
+ "type_name": "نوع کاربر",
"vehicle_type": "نوع ماشین",
"state_name": "وضعیت درخواست"
},
@@ -318,8 +319,8 @@
"description_error": "وارد کردن توضیحات الزامی است!"
},
"UpdateDialog": {
- "update": "تغییر وضعیت درخواست",
- "update-tooltip": "بروزرسانی",
+ "update": "ویرایش",
+ "update-tooltip": "ویرایش",
"button-cancel": "بستن",
"refahi": "رفاهی",
"navgan": "ناوگان",
@@ -327,7 +328,7 @@
"national_id": "کد ملی",
"type_id": "نوع کاربر",
"navgan_id": "کد ناوگان",
- "button-update": "بروزرسانی"
+ "button-update": "ویرایش"
},
"UploadSystem": {
"upload_file": "فایل خود را بارگذاری کنید",
@@ -344,6 +345,7 @@
"DeleteDialog": {
"delete": "حذف",
"button-cancel": "انصراف",
+ "typography": "آیا از حدف این مورد اطمینان دارید ؟",
"button-delete": "حذف کردن"
},
"AddDialog": {
diff --git a/src/components/dashboard/user-management/Form/AddForm.jsx b/src/components/dashboard/user-management/Form/AddForm.jsx
index d807d68..c0021e8 100644
--- a/src/components/dashboard/user-management/Form/AddForm.jsx
+++ b/src/components/dashboard/user-management/Form/AddForm.jsx
@@ -147,11 +147,11 @@ const AddForm = ({mutate, fetchUrl}) => {
formik.touched.type_id &&
Boolean(formik.errors.type_id)
}
- onBlur={formik.handleBlur("type_id")}
>
{t("AddDialog.type_id")}
diff --git a/src/components/dashboard/user-management/Form/DeleteForm.jsx b/src/components/dashboard/user-management/Form/DeleteForm.jsx
index f336036..b653428 100644
--- a/src/components/dashboard/user-management/Form/DeleteForm.jsx
+++ b/src/components/dashboard/user-management/Form/DeleteForm.jsx
@@ -1,6 +1,15 @@
import {useTranslations} from "next-intl";
import {useState} from "react";
-import {Button, Dialog, DialogActions, DialogTitle, IconButton, Tooltip} from "@mui/material";
+import {
+ Button,
+ Dialog,
+ DialogActions,
+ DialogContent,
+ DialogTitle,
+ IconButton,
+ Tooltip,
+ Typography
+} from "@mui/material";
import DeleteIcon from '@mui/icons-material/Delete';
import {DELETE_USER_MANAGEMENT} from "@/core/data/apiRoutes";
import useRequest from "@/lib/app/hooks/useRequest";
@@ -12,7 +21,6 @@ const DeleteForm = ({rowId, fetchUrl, mutate}) => {
const [isSubmitting, setIsSubmitting] = useState(false)
const requestServer = useRequest({auth: true})
const {update_notification} = useNotification()
-
const handleSubmit = () => {
setIsSubmitting(true)
requestServer(`${DELETE_USER_MANAGEMENT}/${rowId}`, 'delete').then((response) => {
@@ -39,6 +47,9 @@ const DeleteForm = ({rowId, fetchUrl, mutate}) => {