diff options
Diffstat (limited to 'lib/general-contract-template/template')
| -rw-r--r-- | lib/general-contract-template/template/general-contract-template-toolbar-actions.tsx | 33 |
1 files changed, 1 insertions, 32 deletions
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} |
