Skip to content

Commit

Permalink
๐Ÿ› fix: ๋ฌธ์„œ ์ง€์› ํ•ญ๋ชฉ ์ค‘ ํ•œ๊ธ€ ํŒŒ์ผ ์ œ๊ฑฐ #127
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMirror21 committed Jan 10, 2025
1 parent 5686560 commit 61aa705
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 45 deletions.
17 changes: 1 addition & 16 deletions src/components/Document/DocumentCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ const ConfirmationCard = ({
<div className="relative head-3">{title}</div>
</div>
<div className="overflow-hidden flex items-center justify-center p-2">
{!documentInfo.hwp_url && !documentInfo.word_url ? (
{!documentInfo.word_url ? (
<WriteIcon />
) : (
<CheckIconGreen />
Expand Down Expand Up @@ -322,21 +322,6 @@ const ConfirmationCard = ({
</div>
</div>
)}
{documentInfo.hwp_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">
smth file download
</div>
</div>
<div onClick={() => onDownload(documentInfo.hwp_url as string)}>
<DownloadIcon />
</div>
</div>
)}
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const ConfirmationCard = ({
<div className="relative head-3">{title}</div>
</div>
<div className="overflow-hidden flex items-center justify-center p-2">
{!documentInfo.hwp_url && !documentInfo.word_url ? (
{!documentInfo.word_url ? (
<WriteIcon />
) : (
<CheckIconGreen />
Expand Down Expand Up @@ -335,19 +335,6 @@ const ConfirmationCard = ({
</div>
</div>
)}
{documentInfo.hwp_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">hwp๋กœ ๋‹ค์šด๋กœ๋“œ</div>
</div>
<div onClick={() => onDownload(documentInfo.hwp_url as string)}>
<DownloadIcon />
</div>
</div>
)}
</div>
</div>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const ApplicationDocumentsPage = () => {
{data?.data.part_time_employment_permits?.status ===
'CONFIRMATION' &&
data?.data.standard_labor_contract?.status === 'CONFIRMATION' &&
data?.data.integrated_application?.hwp_url ? (
data?.data.integrated_application?.word_url ? (
<Button
type="large"
bgColor={'bg-[#FEF387]'}
Expand Down
13 changes: 2 additions & 11 deletions src/pages/Employer/WriteDocuments/ApplicantDocumentsDetailPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,6 @@ const ApplicantDocumentsDetailPage = () => {
const { data } = useGetDocumentsEmployer(Number(currentApplicantId));
const navigate = useNavigate();

{
/*
integrated_application: {
id: 3001,
hwp_url: 'https://example.com/applications/integrated_3001.hwp',
word_url: 'https://example.com/applications/integrated_3001.docx',
},
*/
}
return (
<>
{isLoading && (
Expand All @@ -46,7 +37,7 @@ const ApplicantDocumentsDetailPage = () => {
<div className="flex flex-col gap-2 p-6">
{data && data?.data[DocumentType.PART_TIME_PERMIT] ? (
<DocumentCardDispenserEmployer
documentInfo={
documentInfo={
data.data[DocumentType.PART_TIME_PERMIT] as EmployDocumentInfo
}
title={DocumentTypeInfo[DocumentType.PART_TIME_PERMIT].name}
Expand All @@ -69,7 +60,7 @@ const ApplicantDocumentsDetailPage = () => {
)}
{data && data?.data[DocumentType.LABOR_CONTRACT] ? (
<DocumentCardDispenserEmployer
documentInfo={
documentInfo={
data.data[DocumentType.LABOR_CONTRACT] as EmployDocumentInfo
}
title={DocumentTypeInfo[DocumentType.LABOR_CONTRACT].name}
Expand Down
3 changes: 0 additions & 3 deletions src/types/api/document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ export type DocumentStatus =
// ํ†ตํ•ฉ ์‹ ์ฒญ์„œ ์™ธ ๋ฌธ์„œ ํƒ€์ž…
export type DocumentInfo = {
id: number;
hwp_url: string | null;
word_url: string | null;
status: DocumentStatus | null;
};

export type EmployDocumentInfo = {
id: number;
hwp_url: string | null;
word_url: string | null;
reason: string | null;
status: DocumentStatusEmployer | null;
Expand All @@ -28,7 +26,6 @@ export type EmployDocumentInfo = {
// ํ†ตํ•ฉ ์‹ ์ฒญ์„œ ํƒ€์ž…
export type IntegratedApplicationInfo = {
id: number;
hwp_url: string | null;
word_url: string | null;
};

Expand Down

0 comments on commit 61aa705

Please sign in to comment.