From 10f90dc68dec42e9a64e081cc0dce6a484447290 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 29 Jul 2025 11:48:59 +0000
Subject: (대표님, 박서영, 최겸) document-list-only, gtc, vendorDocu,
 docu-list-rule
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/gtc-contract/status/gtc-contract-table.tsx | 13 +++++++++++++
 1 file changed, 13 insertions(+)

(limited to 'lib/gtc-contract/status/gtc-contract-table.tsx')

diff --git a/lib/gtc-contract/status/gtc-contract-table.tsx b/lib/gtc-contract/status/gtc-contract-table.tsx
index 0fb637b6..ce3a2c7a 100644
--- a/lib/gtc-contract/status/gtc-contract-table.tsx
+++ b/lib/gtc-contract/status/gtc-contract-table.tsx
@@ -27,6 +27,7 @@ import { UpdateGtcDocumentSheet } from "./update-gtc-document-sheet"
 import { CreateGtcDocumentDialog } from "./create-gtc-document-dialog"
 import { CreateNewRevisionDialog } from "./create-new-revision-dialog"
 import { useRouter } from "next/navigation"
+import { CloneGtcDocumentDialog } from "./clone-gtc-document-dialog"
 
 interface GtcDocumentsTableProps {
   promises: Promise<
@@ -42,6 +43,8 @@ export function GtcDocumentsTable({ promises }: GtcDocumentsTableProps) {
   const [{ data, pageCount }, projects, users] = React.use(promises)
   const router = useRouter()
 
+  console.log(data)
+
   const [rowAction, setRowAction] =
     React.useState<DataTableRowAction<GtcDocumentWithRelations> | null>(null)
 
@@ -169,6 +172,16 @@ export function GtcDocumentsTable({ promises }: GtcDocumentsTableProps) {
         originalDocument={rowAction?.row.original ?? null}
       />
 
+
+            {/* 복제 다이얼로그 */}
+            {rowAction?.type === "clone" && (
+        <CloneGtcDocumentDialog
+          sourceDocument={rowAction.row.original}
+          open={true}
+          onOpenChange={() => setRowAction(null)}
+        />
+      )}
+
       {/* <CreateGtcDocumentDialog /> */}
     </>
   )
-- 
cgit v1.2.3

