summaryrefslogtreecommitdiff
path: root/lib/tech-vendors/table/tech-vendors-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tech-vendors/table/tech-vendors-table.tsx')
-rw-r--r--lib/tech-vendors/table/tech-vendors-table.tsx17
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