From 928cd3bb9c7bf7729850c4221069193f73a321df Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Sat, 23 Nov 2024 21:20:19 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20fix:=20=EA=B3=A0=EC=9A=A9=EC=A3=BC=20?= =?UTF-8?q?=EA=B7=BC=EB=A1=9C=EA=B3=84=EC=95=BD=EC=84=9C=20=EB=AF=B8?= =?UTF-8?q?=EB=A6=AC=EB=B3=B4=EA=B8=B0=20=EC=97=B0=EA=B2=B0=20#127?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DocumentCardDispenserEmployer.tsx | 59 ++++++++++++------- 1 file changed, 39 insertions(+), 20 deletions(-) diff --git a/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx b/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx index 16e2392f..4cc1fb96 100644 --- a/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx +++ b/src/components/Employer/ApplicantDocumentsDetail/DocumentCardDispenserEmployer.tsx @@ -20,11 +20,7 @@ type DocumentCardProps = { onNext?: () => void; }; -const NullCard = ({ - title, -}: { - title: string; -}) => { +const NullCard = ({ title }: { title: string }) => { return (
@@ -67,20 +63,24 @@ const TemporarySaveCard = ({ title, onNext, onEdit, + onPreview, }: { title: string; onNext: () => void; onEdit: () => void; + onPreview: () => void; }) => { return (
- 클릭해서 서류 내용을 확인해보세요 + 클릭해서 서류 내용을 확인해보세요. +
-
-
-
+
@@ -129,7 +129,8 @@ const TemporarySaveCard = ({ ); }; -{/* +{ + /* const BeforeConfirmationCard = ({ title }: { title: string }) => { return (
@@ -168,7 +169,8 @@ const TemporarySaveCard = ({
); }; - */} + */ +} const SubmittedCard = ({ title }: { title: string }) => { return ( @@ -213,22 +215,26 @@ const RewritingCard = ({ title, onNext, onEdit, + onPreview, reason, }: { title: string; onNext: () => void; onEdit: () => void; + onPreview: () => void; reason: string; }) => { return (
- Check my Work Permit Form + 클릭해서 서류 내용을 확인해보세요. +
-
-
-
+
@@ -282,6 +288,7 @@ const ConfirmationCard = ({ }: { title: string; document: EmployDocumentInfo; + onDownload: (url: string) => void; }) => { return ( @@ -290,10 +297,6 @@ const ConfirmationCard = ({
서류 작성이 완료되었습니다.
-
-
- -
@@ -360,7 +363,7 @@ const DocumentCardDispenserEmployer = ({ const handleDownload = (url: string) => { window.open(url, '_blank'); }; - const {updateCurrentDocumentId} = useCurrentDocumentIdStore(); + const { updateCurrentDocumentId } = useCurrentDocumentIdStore(); const { mutate: submitDocument } = usePatchStatusSubmissionEmployer(); if (!document.status) return ; switch (document.status) { @@ -378,6 +381,14 @@ const DocumentCardDispenserEmployer = ({ }, }); }} + onPreview={() => { + updateCurrentDocumentId(document.id); + navigate(`/document-preview/${document.id}`, { + state: { + type: type, + }, + }); + }} /> ); case DocumentStatusEmployer.SUBMITTED: @@ -398,6 +409,14 @@ const DocumentCardDispenserEmployer = ({ }, }); }} + onPreview={() => { + updateCurrentDocumentId(document.id); + navigate(`/document-preview/${document.id}`, { + state: { + type: type, + }, + }); + }} /> ); break;