From a50bc9baea332f996e6bc3a5d70c69f6d2d0f194 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 23 Jul 2025 09:08:03 +0000
Subject: (대표님, 최겸) 기본계약 템플릿 및 에디터, 기술영업 벤더정보, 파일
 보안다운로드, 벤더 document sync 상태 서비스, 메뉴 Config, 기술영업 미사용
 제거
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../template/basic-contract-template.tsx           | 31 ++++++++--------------
 1 file changed, 11 insertions(+), 20 deletions(-)

(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 0cca3a41..4fc70af4 100644
--- a/lib/basic-contract/template/basic-contract-template.tsx
+++ b/lib/basic-contract/template/basic-contract-template.tsx
@@ -1,6 +1,7 @@
 "use client";
 
 import * as React from "react";
+import { useRouter } from "next/navigation";
 import { DataTable } from "@/components/data-table/data-table";
 import { useDataTable } from "@/hooks/use-data-table";
 import { DataTableAdvancedToolbar } from "@/components/data-table/data-table-advanced-toolbar";
@@ -15,7 +16,6 @@ import { UpdateTemplateSheet } from "./update-basicContract-sheet";
 import { TemplateTableToolbarActions } from "./basicContract-table-toolbar-actions";
 import { BasicContractTemplate } from "@/db/schema";
 
-
 interface BasicTemplateTableProps {
   promises: Promise<
     [
@@ -24,21 +24,17 @@ interface BasicTemplateTableProps {
   >
 }
 
-
 export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps) {
-
-
+  const router = useRouter();
   const [rowAction, setRowAction] =
     React.useState<DataTableRowAction<BasicContractTemplate> | null>(null)
-
-
   const [{ data, pageCount }] =
     React.use(promises)
 
-  // 컬럼 설정 - 외부 파일에서 가져옴
+  // 컬럼 설정 - router를 전달
   const columns = React.useMemo(
-    () => getColumns({ setRowAction }),
-    [setRowAction]
+    () => getColumns({ setRowAction, router }),
+    [setRowAction, router]
   )
 
   // config 기반으로 필터 필드 설정
@@ -47,7 +43,7 @@ export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps
     {
       id: "status", label: "상태", type: "select", options: [
         { label: "활성", value: "ACTIVE" },
-        { label: "비활성", value: "INACTIVE" },
+        { label: "폐기", value: "DISPOSED" },
       ]
     },
     { id: "fileName", label: "파일명", type: "text" },
@@ -59,7 +55,6 @@ export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps
       data,
       columns,
       pageCount,
-      // filterFields,
       enablePinning: true,
       enableAdvancedFilter: true,
       initialState: {
@@ -73,15 +68,13 @@ export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps
 
   return (
     <>
-
-      <DataTable table={table}>
+       <DataTable table={table}>
         <DataTableAdvancedToolbar
           table={table}
           filterFields={advancedFilterFields}
         >
           <TemplateTableToolbarActions table={table} />
-
-        </DataTableAdvancedToolbar>
+         </DataTableAdvancedToolbar>
       </DataTable>
 
       <DeleteTemplatesDialog
@@ -97,8 +90,6 @@ export function BasicContractTemplateTable({ promises }: BasicTemplateTableProps
         onOpenChange={() => setRowAction(null)}
         template={rowAction?.row.original ?? null}
       />
-
-    </>
-
-  );
-} 
\ No newline at end of file
+     </>
+   );
+}
\ No newline at end of file
-- 
cgit v1.2.3

