From cbb4c7fe0b94459162ad5e998bc05cd293e0ff96 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 11 Aug 2025 09:02:00 +0000 Subject: (대표님) 입찰, EDP 변경사항 대응, spreadJS 오류 수정, 벤더실사 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form-data-report-temp-upload-dialog.tsx | 116 +++++++++++---------- 1 file changed, 60 insertions(+), 56 deletions(-) (limited to 'components/form-data/form-data-report-temp-upload-dialog.tsx') diff --git a/components/form-data/form-data-report-temp-upload-dialog.tsx b/components/form-data/form-data-report-temp-upload-dialog.tsx index 78663d64..59ea6ade 100644 --- a/components/form-data/form-data-report-temp-upload-dialog.tsx +++ b/components/form-data/form-data-report-temp-upload-dialog.tsx @@ -1,6 +1,8 @@ "use client"; import React, { FC, Dispatch, SetStateAction, useState } from "react"; +import { useParams } from "next/navigation"; +import { useTranslation } from "@/i18n/client"; import { Dialog, DialogContent, @@ -38,60 +40,62 @@ export const FormDataReportTempUploadDialog: FC< formCode, uploaderType, }) => { - const [tabValue, setTabValue] = useState<"upload" | "uploaded">("upload"); + const params = useParams(); + const lng = (params?.lng as string) || "ko"; + const { t } = useTranslation(lng, "engineering"); - return ( - - - - Vendor Document Template - - {/* 사용하시고자 하는 Vendor Document Template(.docx)를 업로드 - 하여주시기 바랍니다. */} - - - - - -
- - setTabValue("upload")} - className="flex-1" - > - Upload Template File - - setTabValue("uploaded")} - className="flex-1" - > - Uploaded Template File List - - -
- - - - - - -
-
-
- ); - }; \ No newline at end of file + const [tabValue, setTabValue] = useState<"upload" | "uploaded">("upload"); + + return ( + + + + {t("templateUpload.dialogTitle")} + + + + + + +
+ + setTabValue("upload")} + className="flex-1" + > + {t("templateUpload.uploadTab")} + + setTabValue("uploaded")} + className="flex-1" + > + {t("templateUpload.uploadedListTab")} + + +
+ + + + + + +
+
+
+ ); +}; \ No newline at end of file -- cgit v1.2.3