From 46cdf193637707394bc0c7155d838d4c48e61c0f Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Mon, 13 Jan 2025 22:01:24 +0900 Subject: [PATCH 01/11] =?UTF-8?q?=F0=9F=90=9B=20fix:=20constant=EB=A1=9C?= =?UTF-8?q?=20=EC=9E=85=EB=A0=A5=EB=90=98=EC=96=B4=20=EC=9E=88=EB=8D=98=20?= =?UTF-8?q?=EB=B6=80=EB=B6=84=20=EB=B3=80=EC=88=98=ED=99=94=20#127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/WriteDocuments/RequestModifyPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/WriteDocuments/RequestModifyPage.tsx b/src/pages/WriteDocuments/RequestModifyPage.tsx index ea4a7e9..a780352 100644 --- a/src/pages/WriteDocuments/RequestModifyPage.tsx +++ b/src/pages/WriteDocuments/RequestModifyPage.tsx @@ -44,7 +44,7 @@ const RequestModifyPage = () => { fontColor="text-[#1E1926]" title="Request" onClick={() => { - sendRequest({ id: 1, reason: reasonInput }); + sendRequest({ id: Number(id), reason: reasonInput }); }} /> From 441e6a0f773b54bb96ed4a330c8333ebd13f74d4 Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Mon, 13 Jan 2025 23:50:27 +0900 Subject: [PATCH 02/11] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=EA=B3=A0=EC=9A=A9?= =?UTF-8?q?=EC=A3=BC=EA=B0=80=20=ED=95=84=EC=88=98=20=EC=9E=85=EB=A0=A5=20?= =?UTF-8?q?=EC=82=AC=ED=95=AD=EC=9D=84=20=EC=9E=85=EB=A0=A5=ED=95=B4?= =?UTF-8?q?=EC=95=BC=20=EC=A0=9C=EC=B6=9C=20=EA=B0=80=EB=8A=A5=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=20#127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DocumentCardDispenserEmployer.tsx | 125 +++++++++--------- 1 file changed, 66 insertions(+), 59 deletions(-) diff --git a/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx b/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx index 39b6111..97178cf 100644 --- a/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx +++ b/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx @@ -1,4 +1,9 @@ -import { EmployDocumentInfo } from '@/types/api/document'; +import { + DocumentType, + EmployDocumentInfo, + EmployerInformation, + LaborContractEmployerInfo, +} from '@/types/api/document'; import Button from '@/components/Common/Button'; import ArrowrightIcon from '@/assets/icons/Chevron.svg?react'; import TalkBallonIcon from '@/assets/icons/TalkBalloon.svg?react'; @@ -9,7 +14,11 @@ import CheckIconGreen from '@/assets/icons/CheckIconGreen.svg?react'; import WriteIcon from '@/assets/icons/WriteIcon.svg?react'; import { useNavigate } from 'react-router-dom'; import { DocumentStatusEmployer } from '@/constants/documents'; -import { usePatchStatusSubmissionEmployer } from '@/hooks/api/useDocument'; +import { + useGetPartTimeEmployPermit, + useGetStandardLaborContract, + usePatchStatusSubmissionEmployer, +} from '@/hooks/api/useDocument'; import { useCurrentDocumentIdStore } from '@/store/url'; type DocumentCardProps = { @@ -61,12 +70,16 @@ const NullCard = ({ title }: { title: string }) => { const TemporarySaveCard = ({ title, - onNext, + onCheck, + onSubmit, onEdit, onPreview, }: { title: string; - onNext: () => void; + onCheck: () => Promise< + EmployerInformation | LaborContractEmployerInfo | null + >; + onSubmit: () => void; onEdit: () => void; onPreview: () => void; }) => { @@ -118,60 +131,21 @@ const TemporarySaveCard = ({ />