From c64264ac25716256c0c7c4f56e6f459747f4ef11 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 23 Oct 2025 11:50:00 +0900
Subject: (김준회) 결재 이력조회 처리 및 취소는 상세로 이동처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/knox/approval/ApprovalManager.tsx | 47 ++--------------------------
 1 file changed, 2 insertions(+), 45 deletions(-)

(limited to 'components/knox/approval/ApprovalManager.tsx')

diff --git a/components/knox/approval/ApprovalManager.tsx b/components/knox/approval/ApprovalManager.tsx
index 0d5c300a..5fd54a0c 100644
--- a/components/knox/approval/ApprovalManager.tsx
+++ b/components/knox/approval/ApprovalManager.tsx
@@ -4,13 +4,11 @@ import { useState } from 'react';
 import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
 import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
 import { Badge } from '@/components/ui/badge';
-import { Separator } from '@/components/ui/separator';
-import { FileText, Eye, XCircle, List, History, Settings } from 'lucide-react';
+import { FileText, Eye, History } from 'lucide-react';
 
 // 결재 컴포넌트들
 import ApprovalSubmit from './ApprovalSubmit';
 import ApprovalDetail from './ApprovalDetail';
-import ApprovalCancel from './ApprovalCancel';
 import ApprovalList from './ApprovalList';
 
 interface ApprovalManagerProps {
@@ -35,10 +33,6 @@ export default function ApprovalManager({
     setCurrentTab('detail');
   };
 
-  const handleCancelSuccess = (apInfId: string) => {
-    setSelectedApInfId(apInfId);
-    setCurrentTab('detail');
-  };
 
   const handleListItemClick = (apInfId: string) => {
     setSelectedApInfId(apInfId);
@@ -76,7 +70,7 @@ export default function ApprovalManager({
 
       {/* 메인 탭 */}
       <Tabs value={currentTab} onValueChange={setCurrentTab} className="w-full">
-        <TabsList className="grid w-full grid-cols-4">
+        <TabsList className="grid w-full grid-cols-3">
           <TabsTrigger value="submit" className="flex items-center gap-2">
             <FileText className="w-4 h-4" />
             상신
@@ -85,10 +79,6 @@ export default function ApprovalManager({
             <Eye className="w-4 h-4" />
             상세조회
           </TabsTrigger>
-          <TabsTrigger value="cancel" className="flex items-center gap-2">
-            <XCircle className="w-4 h-4" />
-            취소
-          </TabsTrigger>
           {/* <TabsTrigger value="list" className="flex items-center gap-2">
             <List className="w-4 h-4" />
             상신함
@@ -113,15 +103,6 @@ export default function ApprovalManager({
           </div>
         </TabsContent>
 
-        {/* 결재 취소 탭 */}
-        <TabsContent value="cancel" className="space-y-6">
-          <div className="w-full">
-            <ApprovalCancel
-              initialApInfId={selectedApInfId}
-              onCancelSuccess={handleCancelSuccess}
-            />
-          </div>
-        </TabsContent>
 
         {/* 상신함 탭 */}
         {/* <TabsContent value="list" className="space-y-6">
@@ -137,35 +118,11 @@ export default function ApprovalManager({
         <TabsContent value="history" className="space-y-6">
           <div className="w-full">
             <ApprovalList
-              type="history"
               onItemClick={handleListItemClick}
             />
           </div>
         </TabsContent>
       </Tabs>
-
-      {/* 하단 정보 */}
-      <Card>
-        <CardContent className="pt-6">
-          <div className="flex items-center justify-between text-sm text-gray-500">
-            <div className="flex items-center gap-4">
-              <div className="flex items-center gap-2">
-                <Settings className="w-4 h-4" />
-                <span>Knox API 결재 시스템</span>
-              </div>
-              <Separator orientation="vertical" className="h-4" />
-              <div>
-                Next.js 15 + shadcn/ui + TypeScript
-              </div>
-            </div>
-            
-            <div className="flex items-center gap-2">
-              <span>버전:</span>
-              <Badge variant="outline">v1.0.0</Badge>
-            </div>
-          </div>
-        </CardContent>
-      </Card>
     </div>
   );
 } 
\ No newline at end of file
-- 
cgit v1.2.3

