From c54e2acaed641b7ae2c1a7304b08626f9ca973db Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 17 Sep 2025 05:39:58 +0000
Subject: (임수민) 기본계약 폐기하기, 수정하기 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/basic-contract/template/basic-contract-template.tsx | 12 ++++++++++++
 1 file changed, 12 insertions(+)

(limited to 'lib/basic-contract/template/basic-contract-template.tsx')

diff --git a/lib/basic-contract/template/basic-contract-template.tsx b/lib/basic-contract/template/basic-contract-template.tsx
index 8ac421f5..ba24187b 100644
--- a/lib/basic-contract/template/basic-contract-template.tsx
+++ b/lib/basic-contract/template/basic-contract-template.tsx
@@ -14,6 +14,7 @@ import { getColumns } from "./basic-contract-template-columns";
 import { DeleteTemplatesDialog } from "./delete-basicContract-dialog";
 import { UpdateTemplateSheet } from "./update-basicContract-sheet";
 import { CreateRevisionDialog } from "./create-revision-dialog";
+import { DisposeDocumentsDialog } from "./dispose-documents-dialog";
 import { TemplateTableToolbarActions } from "./basicContract-table-toolbar-actions";
 import { BasicContractTemplate } from "@/db/schema";
 
@@ -104,6 +105,17 @@ export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps
           router.refresh();
         }}
       />
+
+      <DisposeDocumentsDialog
+        open={rowAction?.type === "dispose" || rowAction?.type === "restore"}
+        onOpenChange={() => setRowAction(null)}
+        documents={rowAction?.row.original ? [rowAction?.row.original] : []}
+        showTrigger={false}
+        onSuccess={() => {
+          setRowAction(null);
+          router.refresh();
+        }}
+      />
      </>
    );
 }
\ No newline at end of file
-- 
cgit v1.2.3

