From c231c35565af2188e464914833a6a80c692d5356 Mon Sep 17 00:00:00 2001 From: AminGhasempoor Date: Tue, 20 May 2025 14:28:32 +0330 Subject: [PATCH 1/2] only state 17 can request --- .../add-request-loan/forms/BuildForm/BuildFormController.jsx | 4 ++-- .../forms/RestoreForm/RestoreFormController.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/dashboard/refahi/add-request-loan/forms/BuildForm/BuildFormController.jsx b/src/components/dashboard/refahi/add-request-loan/forms/BuildForm/BuildFormController.jsx index cbd99f6..283d4e3 100644 --- a/src/components/dashboard/refahi/add-request-loan/forms/BuildForm/BuildFormController.jsx +++ b/src/components/dashboard/refahi/add-request-loan/forms/BuildForm/BuildFormController.jsx @@ -7,7 +7,7 @@ import BuildProjectInfo from "./BuildProjectInfo"; import BuildRequestDetail from "./BuildRequestDetail"; import useLimitedProvince from "@/lib/app/hooks/useLimitedProvince"; -const BuildFormController = ({ handleSubmit, dispatch, state, submitting, editDisabled }) => { +const BuildFormController = ({ handleSubmit, dispatch, state, submitting, canRequest }) => { const t = useTranslations(); const [activeStep, setActiveStep] = useState(0); const { provinceList, isLoadingProvinceList, errorProvinceList } = useLimitedProvince(); @@ -54,7 +54,7 @@ const BuildFormController = ({ handleSubmit, dispatch, state, submitting, editDi handleBack={handleBack} handleSubmit={handleSubmit} submitting={submitting} - editDisabled={editDisabled} + canRequest={canRequest} /> )} diff --git a/src/components/dashboard/refahi/add-request-loan/forms/RestoreForm/RestoreFormController.jsx b/src/components/dashboard/refahi/add-request-loan/forms/RestoreForm/RestoreFormController.jsx index b14188a..6a33e15 100644 --- a/src/components/dashboard/refahi/add-request-loan/forms/RestoreForm/RestoreFormController.jsx +++ b/src/components/dashboard/refahi/add-request-loan/forms/RestoreForm/RestoreFormController.jsx @@ -7,7 +7,7 @@ import RestoreRequestDetail from "./RestoreRequestDetail"; import RestoreToggleRealLegal from "./RestoreToggleRealLegal"; import useLimitedProvince from "@/lib/app/hooks/useLimitedProvince"; -const RestoreFormController = ({ state, dispatch, handleSubmit, submitting, editDisabled }) => { +const RestoreFormController = ({ state, dispatch, handleSubmit, submitting, canRequest }) => { const t = useTranslations(); const [activeStep, setActiveStep] = useState(0); const { provinceList, isLoadingProvinceList, errorProvinceList } = useLimitedProvince(); @@ -55,7 +55,7 @@ const RestoreFormController = ({ state, dispatch, handleSubmit, submitting, edit handleBack={handleBack} handleSubmit={handleSubmit} submitting={submitting} - editDisabled={editDisabled} + canRequest={canRequest} /> )} From c12015a5fae9be83ddda6565c1144e75f381fc74 Mon Sep 17 00:00:00 2001 From: AmirHossein Mahmoodi Date: Tue, 20 May 2025 14:31:41 +0330 Subject: [PATCH 2/2] change version to 2.6.2 --- .env.local.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.local.example b/.env.local.example index fac11f6..263aea9 100644 --- a/.env.local.example +++ b/.env.local.example @@ -1,5 +1,5 @@ NEXT_PUBLIC_API_NAME = "Loan Facilities Dashboard" -NEXT_PUBLIC_API_VERSION = "2.6.1" +NEXT_PUBLIC_API_VERSION = "2.6.2" NEXT_PUBLIC_DEFAULT_LANGUAGE = "fa" NEXT_PUBLIC_DEFAULT_DIRECTION = "rtl"