From 9ceed79cf32c896f8a998399bf1b296506b2cd4a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 8 Apr 2025 03:08:19 +0000
Subject: 로그인 및 미들웨어 처리. 구조 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/form-list/table/formLists-table-columns.tsx | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

(limited to 'lib/form-list/table/formLists-table-columns.tsx')

diff --git a/lib/form-list/table/formLists-table-columns.tsx b/lib/form-list/table/formLists-table-columns.tsx
index f638c4df..647a8af1 100644
--- a/lib/form-list/table/formLists-table-columns.tsx
+++ b/lib/form-list/table/formLists-table-columns.tsx
@@ -17,16 +17,16 @@ import {
 
 import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header"
 import { formListsColumnsConfig } from "@/config/formListsColumnsConfig"
-import { TagTypeClassFormMappings } from "@/db/schema/vendorData"
+import { ExtendedFormMappings } from "../validation"
 
 interface GetColumnsProps {
-  setRowAction: React.Dispatch<React.SetStateAction<DataTableRowAction<TagTypeClassFormMappings> | null>>
+  setRowAction: React.Dispatch<React.SetStateAction<DataTableRowAction<ExtendedFormMappings> | null>>
 }
 
 /**
  * tanstack table 컬럼 정의 (중첩 헤더 버전)
  */
-export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<TagTypeClassFormMappings>[] {
+export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<ExtendedFormMappings>[] {
   // ----------------------------------------------------------------
   // 1) select 컬럼 (체크박스)
   // ----------------------------------------------------------------
@@ -35,7 +35,7 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<TagType
   // ----------------------------------------------------------------
   // 2) actions 컬럼 (단일 버튼 - Meta Info 바로 보기)
   // ----------------------------------------------------------------
-  const actionsColumn: ColumnDef<TagTypeClassFormMappings> = {
+  const actionsColumn: ColumnDef<ExtendedFormMappings> = {
     id: "actions",
     enableHiding: false,
     cell: function Cell({ row }) {
@@ -65,7 +65,7 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<TagType
   // 3) 일반 컬럼들을 "그룹"별로 묶어 중첩 columns 생성
   // ----------------------------------------------------------------
   // 3-1) groupMap: { [groupName]: ColumnDef<TagTypeClassFormMappings>[] }
-  const groupMap: Record<string, ColumnDef<TagTypeClassFormMappings>[]> = {}
+  const groupMap: Record<string, ColumnDef<ExtendedFormMappings>[]> = {}
 
   formListsColumnsConfig.forEach((cfg) => {
     // 만약 group가 없으면 "_noGroup" 처리
@@ -76,7 +76,7 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<TagType
     }
 
     // child column 정의
-    const childCol: ColumnDef<TagTypeClassFormMappings> = {
+    const childCol: ColumnDef<ExtendedFormMappings> = {
       accessorKey: cfg.id,
       enableResizing: true,
       header: ({ column }) => (
@@ -104,7 +104,7 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<TagType
   // ----------------------------------------------------------------
   // 3-2) groupMap에서 실제 상위 컬럼(그룹)을 만들기
   // ----------------------------------------------------------------
-  const nestedColumns: ColumnDef<TagTypeClassFormMappings>[] = []
+  const nestedColumns: ColumnDef<ExtendedFormMappings>[] = []
 
   // 순서를 고정하고 싶다면 group 순서를 미리 정의하거나 sort해야 함
   // 여기서는 그냥 Object.entries 순서
-- 
cgit v1.2.3

