From 610d3bccf1cb640e2a21df28d8d2a954c2bf337e Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 5 Jun 2025 01:53:35 +0000
Subject: (대표님) 변경사항 0604 - OCR 관련 및 drizzle generated sqls
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/document-lists/vendor-doc-list-client.tsx | 16 +++++++++++-----
 1 file changed, 11 insertions(+), 5 deletions(-)

(limited to 'components/document-lists/vendor-doc-list-client.tsx')

diff --git a/components/document-lists/vendor-doc-list-client.tsx b/components/document-lists/vendor-doc-list-client.tsx
index 17137650..6ba155a7 100644
--- a/components/document-lists/vendor-doc-list-client.tsx
+++ b/components/document-lists/vendor-doc-list-client.tsx
@@ -1,5 +1,4 @@
 "use client"
-
 import * as React from "react"
 import { useRouter, useParams } from "next/navigation"
 
@@ -34,6 +33,9 @@ export default function VendorDocumentListClient({
         contractIdFromUrl
     )
     
+    // projectType 상태 추가
+    const [projectType, setProjectType] = React.useState<string>("ship")
+    
     // Update selectedContractId when URL changes
     React.useEffect(() => {
         if (contractIdFromUrl) {
@@ -41,14 +43,15 @@ export default function VendorDocumentListClient({
         }
     }, [contractIdFromUrl])
 
-
     // Handle contract selection
     function handleSelectContract(projectId: number, contractId: number) {
-        const projectType = projects.find(v=>v.projectId === projectId)?.projectType || "ship"
+        const foundProjectType = projects.find(v => v.projectId === projectId)?.projectType || "ship"
+        
         setSelectedContractId(contractId)
+        setProjectType(foundProjectType)
         
         // Navigate to the contract's documents page
-        router.push(`/partners/document-list/${contractId}?projectType=${projectType}`)
+        router.push(`/partners/document-list/${contractId}?projectType=${foundProjectType}`)
     }
     
     return (
@@ -59,7 +62,10 @@ export default function VendorDocumentListClient({
                 <div>
                     <h2 className="text-2xl font-bold tracking-tight">Vendor Document List</h2>
                     <p className="text-muted-foreground">
-                        문서리스트와 이슈스테이지를 생성하고 관리할 수 있으며 삼성중공업으로 전달할 수 있습니다.
+                        {projectType === "ship" 
+                            ? "삼성중공업 문서시스템으로부터 목록을 가져오고 문서 파일을 등록하여 삼성중공업으로 전달할 수 있습니다."
+                            : "문서리스트와 이슈스테이지를 생성하고 관리할 수 있으며 문서 파일을 등록하여 삼성중공업으로 전달할 수 있습니다."
+                        }
                     </p>
                 </div>
                 
-- 
cgit v1.2.3

