From 68e7231bbd81724fb755dcf9641de3e08ada00d8 Mon Sep 17 00:00:00 2001 From: Savien/Woo Jun Han <49388937+MrMirror21@users.noreply.github.com> Date: Sun, 27 Oct 2024 23:16:21 +0900 Subject: [PATCH] =?UTF-8?q?:wrench:=20pdf=20url=20=EC=9A=94=EA=B5=AC?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EC=88=98=EC=A0=95=20=EC=A0=81=EC=9A=A9=20?= =?UTF-8?q?#54?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Document/DocumentCard.tsx | 17 +---------------- .../ApplicationDocumentsPage.tsx | 7 +++++-- src/types/api/document.ts | 2 -- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/components/Document/DocumentCard.tsx b/src/components/Document/DocumentCard.tsx index e28f6b7e..c3d14347 100644 --- a/src/components/Document/DocumentCard.tsx +++ b/src/components/Document/DocumentCard.tsx @@ -265,7 +265,7 @@ const ConfirmationCard = ({
{title}
- {!document.pdf_url && !document.hwp_url && !document.word_url ? ( + {!document.hwp_url && !document.word_url ? ( ) : ( @@ -284,21 +284,6 @@ const ConfirmationCard = ({
- {document.pdf_url && ( -
-
-
- -
-
- Pdf file download -
-
-
onDownload(document.pdf_url as string)}> - -
-
- )} {document.word_url && (
diff --git a/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx b/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx index 75842c60..d693f549 100644 --- a/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx +++ b/src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx @@ -8,11 +8,15 @@ const mockDocumentsSummaryResponse: DocumentsSummaryResponse = { standard_labor_contract: { id: 2001, - pdf_url: 'https://example.com/contracts/standard_2001.pdf', hwp_url: 'https://example.com/contracts/standard_2001.hwp', word_url: 'https://example.com/contracts/standard_2001.docx', status: 'BEFORE_CONFIRMATION', }, + integrated_application: { + id: 3001, + hwp_url: 'https://example.com/applications/integrated_3001.hwp', + word_url: 'https://example.com/applications/integrated_3001.docx', + }, }; const ApplicationDocumentsPage = () => { @@ -20,7 +24,6 @@ const ApplicationDocumentsPage = () => { /* integrated_application: { id: 3001, - pdf_url: 'https://example.com/applications/integrated_3001.pdf', hwp_url: 'https://example.com/applications/integrated_3001.hwp', word_url: 'https://example.com/applications/integrated_3001.docx', }, diff --git a/src/types/api/document.ts b/src/types/api/document.ts index 48c420ce..4abf5681 100644 --- a/src/types/api/document.ts +++ b/src/types/api/document.ts @@ -11,7 +11,6 @@ export type DocumentStatus = // 통합 신청서 외 문서 타입 export type DocumentInfo = { id: number; - pdf_url?: string; hwp_url?: string; word_url?: string; status?: DocumentStatus; @@ -20,7 +19,6 @@ export type DocumentInfo = { // 통합 신청서 타입 export type IntegratedApplicationInfo = { id: number; - pdf_url?: string; hwp_url?: string; word_url?: string; };