From e47c0d8bf032e9da9f2cae1b648649bd33e44589 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 13 Nov 2025 02:07:52 +0000
Subject: (임수민) 일반계약 템플릿 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../general-contract-template-toolbar-actions.tsx  | 33 +---------------------
 1 file changed, 1 insertion(+), 32 deletions(-)

(limited to 'lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx')

diff --git a/lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx b/lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx
index 03818109..38a83a7f 100644
--- a/lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx
+++ b/lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx
@@ -1,8 +1,7 @@
 "use client"
 
 import * as React from "react"
-import { useRouter } from "next/navigation"
-import { Trash2, FileText } from "lucide-react"
+import { Trash2 } from "lucide-react"
 import { toast } from "sonner"
 
 import { Button } from "@/components/ui/button"
@@ -19,10 +18,7 @@ export function GeneralContractTemplateToolbarActions({
   selectedRows = [],
   onSelectionChange
 }: GeneralContractTemplateToolbarActionsProps) {
-  const router = useRouter()
-  const [isModifyOpen, setIsModifyOpen] = React.useState(false)
   const [isDisposeOpen, setIsDisposeOpen] = React.useState(false)
-  const [isContractStatusOpen, setIsContractStatusOpen] = React.useState(false)
 
   // 폐기 버튼 클릭
   const handleDispose = () => {
@@ -34,22 +30,6 @@ export function GeneralContractTemplateToolbarActions({
     setIsDisposeOpen(true)
   }
 
-  // 계약현황 버튼 클릭
-  const handleContractStatus = () => {
-    if (selectedRows.length === 0) {
-      toast.error("확인할 문서를 선택해주세요.")
-      return
-    }
-
-    if (selectedRows.length > 1) {
-      toast.error("한 번에 하나의 문서만 확인할 수 있습니다.")
-      return
-    }
-
-    // 일반계약관리 페이지로 이동
-    router.push(`/evcp/general-contracts`)
-  }
-
   // 실제 폐기 처리
   const handleConfirmDispose = async () => {
     try {
@@ -76,17 +56,6 @@ export function GeneralContractTemplateToolbarActions({
         {/* 신규등록: 다이얼로그 사용 */}
         <AddGeneralContractTemplateDialog />
 
-        {/* 계약현황 버튼 */}
-        <Button
-          onClick={handleContractStatus}
-          variant="outline"
-          size="sm"
-          className="border-blue-600 text-blue-600 hover:bg-blue-50"
-        >
-          <FileText className="mr-2 h-4 w-4" />
-          계약현황
-        </Button>
-
         {/* 폐기 버튼 */}
         <Button
           onClick={handleDispose}
-- 
cgit v1.2.3

