refactor(WEB): 코드 품질 개선 및 불필요 코드 제거
- 미사용 import/변수/console.log 대량 정리 (100+개 파일) - ItemMasterContext 간소화 (미사용 로직 제거) - IntegratedListTemplateV2 / UniversalListPage 개선 - 결재 컴포넌트(ApprovalBox, DraftBox, ReferenceBox) 정리 - HR 컴포넌트(급여/휴가/부서) 코드 간소화 - globals.css 스타일 정리 및 개선 - AuthenticatedLayout 개선 - middleware CSP 정리 - proxy route 불필요 로깅 제거 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -582,28 +582,26 @@ export function ApprovalBox() {
|
||||
},
|
||||
],
|
||||
|
||||
headerActions: ({ selectedItems, onClearSelection }) => (
|
||||
selectionActions: ({ selectedItems, onClearSelection }) => canApprove ? (
|
||||
<>
|
||||
{selectedItems.size > 0 && canApprove && (
|
||||
<div className="ml-auto flex gap-2">
|
||||
<Button
|
||||
variant="default"
|
||||
onClick={() => handleApproveClick(selectedItems, onClearSelection)}
|
||||
>
|
||||
<Check className="h-4 w-4 mr-2" />
|
||||
승인
|
||||
</Button>
|
||||
<Button
|
||||
variant="destructive"
|
||||
onClick={() => handleRejectClick(selectedItems, onClearSelection)}
|
||||
>
|
||||
<X className="h-4 w-4 mr-2" />
|
||||
반려
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
<Button
|
||||
size="sm"
|
||||
variant="default"
|
||||
onClick={() => handleApproveClick(selectedItems, onClearSelection)}
|
||||
>
|
||||
<Check className="h-4 w-4 mr-2" />
|
||||
승인
|
||||
</Button>
|
||||
<Button
|
||||
size="sm"
|
||||
variant="destructive"
|
||||
onClick={() => handleRejectClick(selectedItems, onClearSelection)}
|
||||
>
|
||||
<X className="h-4 w-4 mr-2" />
|
||||
반려
|
||||
</Button>
|
||||
</>
|
||||
),
|
||||
) : null,
|
||||
|
||||
tableHeaderActions: (
|
||||
<div className="flex items-center gap-2">
|
||||
|
||||
Reference in New Issue
Block a user