rename navgan and refahi

This commit is contained in:
2025-03-12 08:26:11 +00:00
committed by AmirHossein Mahmoodi
parent 969d9f8dc3
commit cdd7bb4dee
7 changed files with 25 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
import { Box, Chip, Divider, Grid, Skeleton, Stack, Typography } from "@mui/material";
import { useEffect, useState } from "react";
import { SHOW_LOAN_REQUEST_NAVGAN } from "@/core/data/apiRoutes";
import { SHOW_LOAN_REQUEST_NAVGAN, SHOW_LOAN_REQUEST_REFAHI } from "@/core/data/apiRoutes";
import RequestCard from "@/components/dashboard/followUp-loan/RequestCard";
import { FullPageLayout, useRequest } from "@witel/webapp-builder";
import DirectionsCarIcon from "@mui/icons-material/DirectionsCar";
@@ -25,7 +25,7 @@ const LoanFollowUpComponent = () => {
.catch(() => setIsLoadingNavgan(false));
setIsLoadingRefahi(true);
requestServer("SHOW_LOAN_REQUEST_NAVGAN", "get", { auth: true })
requestServer(SHOW_LOAN_REQUEST_REFAHI, "get", { auth: true })
.then(({ data }) => {
setRefahiFollowUpList(data.data);
setIsLoadingRefahi(false);

View File

@@ -121,10 +121,10 @@ const BuildRequestDetail = ({ state, handleBack, setFinishRefahiLoanRequest, dis
notification: true,
data: formData,
});
// setFinishRefahiLoanRequest(true);
router.replace("/dashboard/followUp-loan");
// router.replace("/dashboard/followUp-loan");
getUser((data) => {
changeUser(data);
setFinishRefahiLoanRequest(true);
});
} catch (error) {
console.error("Error submitting request:", error);

View File

@@ -117,10 +117,10 @@ const RestoreRequestDetail = ({ state, handleBack, dispatch, setFinishRefahiLoan
notification: true,
data: formData,
});
// setFinishRefahiLoanRequest(true);
router.replace("/dashboard/followUp-loan");
// router.replace("/dashboard/followUp-loan");
getUser((data) => {
changeUser(data);
setFinishRefahiLoanRequest(true);
});
} catch (error) {
console.error("Error submitting request:", error);