From 16c3c505c8e4d49ce8a4b507538a4cf420cde3f2 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Wed, 26 Nov 2025 16:28:09 +0330 Subject: [PATCH] build and format3 --- .../ConfirmRoadSafetyForm/ConfirmRoadSafetyDialog.jsx | 6 +----- .../ConfirmRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx | 4 ++-- .../ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyDialog.jsx | 6 +----- .../ConfirmRoadSafetyFormContext.jsx | 4 ++-- src/core/utils/routes.js | 1 - 5 files changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyDialog.jsx b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyDialog.jsx index 88c69c8..512e9a5 100644 --- a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyDialog.jsx +++ b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyDialog.jsx @@ -31,11 +31,7 @@ const ConfirmRoadSafetyDialog = ({ row, handleClose, rowId, mutate }) => { {loading ? ( ) : data ? ( - + ) : ( اطلاعات درخواست در سامانه یافت نشد diff --git a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx index da232da..5b4dd3d 100644 --- a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx +++ b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx @@ -4,7 +4,7 @@ import useRequest from "@/lib/hooks/useRequest"; import { CONFIRM_ROAD_SAFETY_FORM } from "@/core/utils/routes"; const ConfirmRoadSafetyFormContext = ({ rowId, mutate, handleClose }) => { - const requestServer = useRequest({notificationShow : true, notificationSuccess : true}); + const requestServer = useRequest({ notificationShow: true, notificationSuccess: true }); const [description, setDescription] = useState(""); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); @@ -30,7 +30,7 @@ const ConfirmRoadSafetyFormContext = ({ rowId, mutate, handleClose }) => { setSuccess(true); mutate(); setDescription(""); - handleClose() + handleClose(); } catch (err) { setError(err.message); } finally { diff --git a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyDialog.jsx b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyDialog.jsx index 940982a..933dda4 100644 --- a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyDialog.jsx +++ b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyDialog.jsx @@ -31,11 +31,7 @@ const ConfirmRoadSafetyDialog = ({ row, handleClose, rowId, mutate }) => { {loading ? ( ) : data ? ( - + ) : ( اطلاعات درخواست در سامانه یافت نشد diff --git a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx index 1738b35..79c8e46 100644 --- a/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx +++ b/src/components/dashboard/inquiryPrivacy/technical-deputy/RowActions/ConfirmVerifyRoadSafetyForm/ConfirmRoadSafetyFormContext.jsx @@ -4,7 +4,7 @@ import { CONFIRM_VERIFY_ROAD_SAFETY_FORM } from "@/core/utils/routes"; import { Alert, Box, Button, CircularProgress, DialogContent, TextField } from "@mui/material"; const ConfirmRoadSafetyFormContext = ({ rowId, mutate, handleClose }) => { - const requestServer = useRequest({notificationShow : true, notificationSuccess : true}); + const requestServer = useRequest({ notificationShow: true, notificationSuccess: true }); const [description, setDescription] = useState(""); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); @@ -30,7 +30,7 @@ const ConfirmRoadSafetyFormContext = ({ rowId, mutate, handleClose }) => { setSuccess(true); mutate(); setDescription(""); - handleClose() + handleClose(); } catch (err) { setError(err.message); } finally { diff --git a/src/core/utils/routes.js b/src/core/utils/routes.js index 13cc378..7e23042 100644 --- a/src/core/utils/routes.js +++ b/src/core/utils/routes.js @@ -249,7 +249,6 @@ export const CONFIRM_ROAD_SAFETY_FORM = api + "/api/v3/harim/technical_deputy/co export const CONFIRM_VERIFY_ROAD_SAFETY_FORM = api + "/api/v3/harim/technical_deputy/confirm_road_access"; export const CONFIRM_VERIFY_LICENSE_FORM = api + "/api/v3/harim/technical_deputy/confirm_payment"; - // History export const GET_HISTORY_LIST = api + "/api/v3/harim/detail/histories"; export const GET_REQUEST_INQUIRY_PRIVACY = api + "/api/v3/harim/technical_deputy";