diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-15 04:41:55 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-15 04:41:55 +0000 |
| commit | 7305a614ca20d50e6ab50bbcfbb128a6f1f90e53 (patch) | |
| tree | 92317f538a4368fa54447ef25fc3ad3616f1b349 /lib/tech-vendors/table/tech-vendors-table.tsx | |
| parent | c5002d77087b256599b174ada611621657fcc523 (diff) | |
(최겸) 기술영업 벤더 개발
Diffstat (limited to 'lib/tech-vendors/table/tech-vendors-table.tsx')
| -rw-r--r-- | lib/tech-vendors/table/tech-vendors-table.tsx | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/tech-vendors/table/tech-vendors-table.tsx b/lib/tech-vendors/table/tech-vendors-table.tsx index 55632182..d6e6f99f 100644 --- a/lib/tech-vendors/table/tech-vendors-table.tsx +++ b/lib/tech-vendors/table/tech-vendors-table.tsx @@ -47,9 +47,6 @@ export function TechVendorsTable({ promises }: TechVendorsTableProps) { // 상태 한글 변환 유틸리티 함수 const getStatusDisplay = (status: string): string => { const statusMap: Record<string, string> = { - "PENDING_REVIEW": "가입 신청 중", - "IN_REVIEW": "심사 중", - "REJECTED": "심사 거부됨", "ACTIVE": "활성 상태", "INACTIVE": "비활성 상태", "BLACKLISTED": "거래 금지" @@ -111,6 +108,11 @@ export function TechVendorsTable({ promises }: TechVendorsTableProps) { const handleCompactChange = React.useCallback((compact: boolean) => { setIsCompact(compact) }, []) + + // 테이블 새로고침 핸들러 + const handleRefresh = React.useCallback(() => { + router.refresh() + }, [router]) return ( @@ -128,7 +130,7 @@ export function TechVendorsTable({ promises }: TechVendorsTableProps) { compactStorageKey="techVendorsTableCompact" onCompactChange={handleCompactChange} > - <TechVendorsTableToolbarActions table={table} /> + <TechVendorsTableToolbarActions table={table} onRefresh={handleRefresh} /> </DataTableAdvancedToolbar> </DataTable> <UpdateVendorSheet @@ -136,13 +138,6 @@ export function TechVendorsTable({ promises }: TechVendorsTableProps) { onOpenChange={() => setRowAction(null)} vendor={rowAction?.row.original ?? null} /> - - {/* ViewTechVendorLogsDialog 컴포넌트는 아직 구현되지 않았습니다. - <ViewTechVendorLogsDialog - open={rowAction?.type === "log"} - onOpenChange={() => setRowAction(null)} - vendorId={rowAction?.row.original?.id ?? null} - /> */} </> ) }
\ No newline at end of file |
