diff --git a/ipi-survey-platform/src/components/overview/ProductDetails.jsx b/ipi-survey-platform/src/components/overview/ProductDetails.jsx index 198cbec..1971d2d 100644 --- a/ipi-survey-platform/src/components/overview/ProductDetails.jsx +++ b/ipi-survey-platform/src/components/overview/ProductDetails.jsx @@ -170,15 +170,29 @@ const ProductDetails = ({ product, onBack, showToast: shouldShowToast, onToastSh {toast.message} {toast.type === 'rejected' && ( + onClick={() => { + navigate('/survey', { + state: { + submission: { + id: product.submission_id, + quarter: product.quarter, + year: product.year, + establishment_name: product.establishment_name, + permanent_factory_code: product.permanent_factory_code, + industry_code: product.industry_code, + license_number: product.license_number, + isic_code: product.isic_code, + emirate: product.emirate + }, + isResubmit: true + } + }); + }} + className="ml-auto px-3 py-1 bg-[#FEF2F2] text-[#7C2320] text-sm font-medium rounded hover:bg-[#FEF2F2] transition-colors" +> + Resubmit + + )} diff --git a/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx b/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx index 5717eb2..e7f8079 100644 --- a/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx +++ b/ipi-survey-platform/src/components/survey/ReviewSubmit/ReviewSubmit.jsx @@ -735,6 +735,7 @@ const ReviewSubmit = ({