summaryrefslogtreecommitdiff
path: root/lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-12-01 19:52:06 +0900
committerjoonhoekim <26rote@gmail.com>2025-12-01 19:52:06 +0900
commit44b74ff4170090673b6eeacd8c528e0abf47b7aa (patch)
tree3f3824b4e2cb24536c1677188b4cae5b8909d3da /lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx
parent4953e770929b82ef77da074f77071ebd0f428529 (diff)
(김준회) deprecated code 정리
Diffstat (limited to 'lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx')
-rw-r--r--lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx70
1 files changed, 0 insertions, 70 deletions
diff --git a/lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx b/lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx
deleted file mode 100644
index efc395b4..00000000
--- a/lib/rfqs/tbe-table/vendor-contact/vendor-contact-table-column.tsx
+++ /dev/null
@@ -1,70 +0,0 @@
-"use client"
-// Because columns rely on React state/hooks for row actions
-
-import * as React from "react"
-import { ColumnDef, Row } from "@tanstack/react-table"
-import { ClientDataTableColumnHeaderSimple } from "@/components/client-data-table/data-table-column-simple-header"
-import { formatDate } from "@/lib/utils"
-import { Checkbox } from "@/components/ui/checkbox"
-import { VendorData } from "./vendor-contact-table"
-
-
-/** getColumns: return array of ColumnDef for 'vendors' data */
-export function getColumns(): ColumnDef<VendorData>[] {
- return [
-
- // Vendor Name
- {
- accessorKey: "contactName",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Contact Name" />
- ),
- cell: ({ row }) => row.getValue("contactName"),
- },
-
- // Vendor Code
- {
- accessorKey: "contactPosition",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Position" />
- ),
- cell: ({ row }) => row.getValue("contactPosition"),
- },
-
- // Status
- {
- accessorKey: "contactEmail",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Email" />
- ),
- cell: ({ row }) => row.getValue("contactEmail"),
- },
-
- // Country
- {
- accessorKey: "contactPhone",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Phone" />
- ),
- cell: ({ row }) => row.getValue("contactPhone"),
- },
-
- // Created At
- {
- accessorKey: "createdAt",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Created At" />
- ),
- cell: ({ cell }) => formatDate(cell.getValue() as Date, "KR"),
- },
-
- // Updated At
- {
- accessorKey: "updatedAt",
- header: ({ column }) => (
- <ClientDataTableColumnHeaderSimple column={column} title="Updated At" />
- ),
- cell: ({ cell }) => formatDate(cell.getValue() as Date, "KR"),
- },
- ]
-} \ No newline at end of file