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/equip-class/table/equipClass-table.tsx | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

(limited to 'lib/equip-class/table/equipClass-table.tsx')

diff --git a/lib/equip-class/table/equipClass-table.tsx b/lib/equip-class/table/equipClass-table.tsx
index 56fd42aa..658718a6 100644
--- a/lib/equip-class/table/equipClass-table.tsx
+++ b/lib/equip-class/table/equipClass-table.tsx
@@ -12,10 +12,10 @@ import { DataTable } from "@/components/data-table/data-table"
 import { DataTableAdvancedToolbar } from "@/components/data-table/data-table-advanced-toolbar"
 import { useFeatureFlags } from "./feature-flags-provider"
 
-import { TagClasses } from "@/db/schema/vendorData"
 import { getTagClassists } from "../service"
 import { EquipClassTableToolbarActions } from "./equipClass-table-toolbar-actions"
 import { getColumns } from "./equipClass-table-columns"
+import { ExtendedTagClasses } from "../validation"
 
 interface ItemsTableProps {
   promises: Promise<
@@ -31,11 +31,8 @@ export function EquipClassTable({ promises }: ItemsTableProps) {
   const [{ data, pageCount }] =
     React.use(promises)
 
-
-console.log(data)
-
   const [rowAction, setRowAction] =
-    React.useState<DataTableRowAction<TagClasses> | null>(null)
+    React.useState<DataTableRowAction<ExtendedTagClasses> | null>(null)
 
   const columns = React.useMemo(
     () => getColumns({ setRowAction }),
@@ -53,7 +50,7 @@ console.log(data)
    * @prop {React.ReactNode} [icon] - An optional icon to display next to the label.
    * @prop {boolean} [withCount] - An optional boolean to display the count of the filter option.
    */
-  const filterFields: DataTableFilterField<TagClasses>[] = [
+  const filterFields: DataTableFilterField<ExtendedTagClasses>[] = [
 
   ]
 
@@ -67,7 +64,7 @@ console.log(data)
    * 3. Used with DataTableAdvancedToolbar: Enables a more sophisticated filtering UI.
    * 4. Date and boolean types: Adds support for filtering by date ranges and boolean values.
    */
-  const advancedFilterFields: DataTableAdvancedFilterField<TagClasses>[] = [
+  const advancedFilterFields: DataTableAdvancedFilterField<ExtendedTagClasses>[] = [
     {
       id: "code",
       label: "Code",
@@ -125,9 +122,7 @@ console.log(data)
         >
           <EquipClassTableToolbarActions table={table} />
         </DataTableAdvancedToolbar>
-
       </DataTable>
-
     </>
   )
 }
-- 
cgit v1.2.3

