From 58fb9fce44eb92c7c55f8ce7b40fb72ba44c92aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=B3=91=EC=B2=A0?= Date: Thu, 29 Jan 2026 14:45:41 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B1=B0=EB=9E=98=EC=B2=98=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EB=93=B1=EB=A1=9D=20=EB=B2=84=ED=8A=BC=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=B0=8F=20dead=20code=20=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 거래처관리 리스트 페이지에 createButton(거래처 등록) 추가 - 미사용 index.ts 배럴 파일 삭제 (index.tsx가 우선 resolve되어 dead code) Co-Authored-By: Claude Opus 4.5 --- .../accounting/VendorManagement/index.ts | 54 ------------------- .../accounting/VendorManagement/index.tsx | 8 ++- 2 files changed, 7 insertions(+), 55 deletions(-) delete mode 100644 src/components/accounting/VendorManagement/index.ts diff --git a/src/components/accounting/VendorManagement/index.ts b/src/components/accounting/VendorManagement/index.ts deleted file mode 100644 index ab5e4119..00000000 --- a/src/components/accounting/VendorManagement/index.ts +++ /dev/null @@ -1,54 +0,0 @@ -/** - * 거래처 관리 컴포넌트 Export - */ - -// 클라이언트 컴포넌트 -export { VendorManagementClient } from './VendorManagementClient'; -export { VendorManagementClient as VendorManagement } from './VendorManagementClient'; - -// 상세/수정 컴포넌트 -export { VendorDetail } from './VendorDetail'; - -// 타입 -export type { - Vendor, - VendorCategory, - CreditRating, - TransactionGrade, - BadDebtStatus, - SortOption, - VendorMemo, - ClientApiData, - ApiResponse, - PaginatedResponse, -} from './types'; - -// 상수 -export { - VENDOR_CATEGORY_LABELS, - VENDOR_CATEGORY_OPTIONS, - VENDOR_CATEGORY_COLORS, - CREDIT_RATING_OPTIONS, - CREDIT_RATING_COLORS, - TRANSACTION_GRADE_LABELS, - TRANSACTION_GRADE_OPTIONS, - TRANSACTION_GRADE_COLORS, - BAD_DEBT_STATUS_LABELS, - BAD_DEBT_STATUS_OPTIONS, - BAD_DEBT_STATUS_COLORS, - SORT_OPTIONS, - BANK_OPTIONS, - PAYMENT_DAY_OPTIONS, - CLIENT_TYPE_TO_CATEGORY, - CATEGORY_TO_CLIENT_TYPE, -} from './types'; - -// Server Actions -export { - getClients, - getClientById, - createClient, - updateClient, - deleteClient, - toggleClientActive, -} from './actions'; diff --git a/src/components/accounting/VendorManagement/index.tsx b/src/components/accounting/VendorManagement/index.tsx index bee05bba..5a3f2e7b 100644 --- a/src/components/accounting/VendorManagement/index.tsx +++ b/src/components/accounting/VendorManagement/index.tsx @@ -109,6 +109,12 @@ export function VendorManagement({ initialData, initialTotal }: VendorManagement icon: Building2, basePath: '/accounting/vendors', + // 등록 버튼 + createButton: { + label: '거래처 등록', + onClick: () => router.push('/ko/accounting/vendors?mode=new'), + }, + // ID 추출 idField: 'id', @@ -428,7 +434,7 @@ export function VendorManagement({ initialData, initialTotal }: VendorManagement /> ), }), - [initialData, stats, handleRowClick, handleEdit] + [initialData, stats, handleRowClick, handleEdit, router] ); return ;