Skip to content

Commit

Permalink
🔧 pdf url 요구사항 수정 적용 #54
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Oct 27, 2024
1 parent 73e2d83 commit 68e7231
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
17 changes: 1 addition & 16 deletions src/components/Document/DocumentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ const ConfirmationCard = ({
<div className="relative head-3">{title}</div>
</div>
<div className="overflow-hidden flex items-center justify-center p-2">
{!document.pdf_url && !document.hwp_url && !document.word_url ? (
{!document.hwp_url && !document.word_url ? (
<WriteIcon />
) : (
<CheckIconGreen />
Expand All @@ -284,21 +284,6 @@ const ConfirmationCard = ({
</div>

<div className="flex flex-col gap-2 w-full items-start justify-start py-2 px-4 text-[#464646]">
{document.pdf_url && (
<div className="w-full rounded-3xl bg-[#f4f4f9] flex items-center justify-between border border-[#dcdcdc] px-4 py-2 pl-2.5">
<div className="flex items-center justify-start gap-2">
<div className="w-[1.375rem] h-[1.375rem] flex items-center justify-center rounded-full bg-[#1e1926]">
<FolderIcon />
</div>
<div className="relative body-3 opacity-75">
Pdf file download
</div>
</div>
<div onClick={() => onDownload(document.pdf_url as string)}>
<DownloadIcon />
</div>
</div>
)}
{document.word_url && (
<div className="w-full rounded-3xl bg-[#f4f4f9] flex items-center justify-between border border-[#dcdcdc] px-4 py-2 pl-2.5">
<div className="flex items-center justify-start gap-2">
Expand Down
7 changes: 5 additions & 2 deletions src/pages/ApplicationDocuments/ApplicationDocumentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,22 @@ 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 = () => {
{
/*
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',
},
Expand Down
2 changes: 0 additions & 2 deletions src/types/api/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export type DocumentStatus =
// 통합 신청서 외 문서 타입
export type DocumentInfo = {
id: number;
pdf_url?: string;
hwp_url?: string;
word_url?: string;
status?: DocumentStatus;
Expand All @@ -20,7 +19,6 @@ export type DocumentInfo = {
// 통합 신청서 타입
export type IntegratedApplicationInfo = {
id: number;
pdf_url?: string;
hwp_url?: string;
word_url?: string;
};
Expand Down

0 comments on commit 68e7231

Please sign in to comment.