build and format3

This commit is contained in:
2025-11-26 16:28:09 +03:30
parent a6d1e7db29
commit 16c3c505c8
5 changed files with 6 additions and 15 deletions

View File

@@ -31,11 +31,7 @@ const ConfirmRoadSafetyDialog = ({ row, handleClose, rowId, mutate }) => {
{loading ? (
<DialogLoading loadingOpen={loading} />
) : data ? (
<ConfirmRoadSafetyFormContext
rowId={rowId}
mutate={mutate}
handleClose={handleClose}
/>
<ConfirmRoadSafetyFormContext rowId={rowId} mutate={mutate} handleClose={handleClose} />
) : (
<DialogContent>
<Typography textAlign={"center"}>اطلاعات درخواست در سامانه یافت نشد</Typography>

View File

@@ -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 {

View File

@@ -31,11 +31,7 @@ const ConfirmRoadSafetyDialog = ({ row, handleClose, rowId, mutate }) => {
{loading ? (
<DialogLoading loadingOpen={loading} />
) : data ? (
<ConfirmRoadSafetyFormContext
rowId={rowId}
mutate={mutate}
handleClose={handleClose}
/>
<ConfirmRoadSafetyFormContext rowId={rowId} mutate={mutate} handleClose={handleClose} />
) : (
<DialogContent>
<Typography textAlign={"center"}>اطلاعات درخواست در سامانه یافت نشد</Typography>

View File

@@ -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 {

View File

@@ -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";