summaryrefslogtreecommitdiff
path: root/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx')
-rw-r--r--lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx19
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
index c823bc9d..b6f9289f 100644
--- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
+++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
@@ -6,7 +6,7 @@ import { Badge } from "@/components/ui/badge"
import { format } from "date-fns"
import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header"
-import type { VendorRegularRegistration } from "@/config/vendorRegularRegistrationsColumnsConfig"
+import { VendorRegularRegistration, statusLabels, statusColors } from "@/config/vendorRegularRegistrationsColumnsConfig"
import { DocumentStatusDialog } from "@/components/vendor-regular-registrations/document-status-dialog"
import { Button } from "@/components/ui/button"
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
@@ -16,23 +16,6 @@ import { useState } from "react"
import { SafetyQualificationUpdateDialog } from "./safety-qualification-update-dialog"
import { MajorItemsUpdateDialog } from "./major-items-update-dialog"
-
-const statusLabels = {
- under_review: "검토중",
- approval_ready: "조건충족",
- in_review: "정규등록검토",
- completed: "등록완료",
- pending_approval: "장기미등록",
-}
-
-const statusColors = {
- under_review: "bg-blue-100 text-blue-800",
- approval_ready: "bg-emerald-100 text-emerald-800",
- in_review: "bg-orange-100 text-orange-800",
- completed: "bg-green-100 text-green-800",
- pending_approval: "bg-red-100 text-red-800",
-}
-
export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
return [