From 54e6ae34437548bfe14d094c277e2a8394d3afe1 Mon Sep 17 00:00:00 2001 From: truthwing Date: Wed, 5 Mar 2025 15:53:10 +0900 Subject: [PATCH] =?UTF-8?q?=ED=83=80=EC=9E=85=EC=97=90=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=EA=B0=80=20=EC=97=86=EA=B2=8C=EB=81=94=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EC=99=84=EB=A3=8C.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business_components/src/ui/table/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx index 17360af12..058d28673 100644 --- a/packages/common/business_components/src/ui/table/index.tsx +++ b/packages/common/business_components/src/ui/table/index.tsx @@ -1,21 +1,19 @@ import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@common/components"; +import { type TableUpperProps } from '../../../../../../apps/wr/app/store/publicReuseFaciltyInsert/index'; import UiPageNations from "./uiPageNations"; interface UiTableProps { headName: string; - publicReuseFacility: any[]; - headlist: { id: string; title: string; }[]; + publicReuseFacility: { [key: string]: string | number | boolean }[]; + headlist: TableUpperProps[]; pageSize: number; total: number; children: React.ReactNode|undefined; } -export function UiTable(UiTableProps: UiTableProps) { - const { publicReuseFacility, headlist,pageSize , total, children,headName} = UiTableProps; +export function UiTable({ publicReuseFacility, headlist,pageSize , total, children,headName}: UiTableProps) { const cur = 1; - - return ( <>

{headName}

@@ -29,7 +27,7 @@ export function UiTable(UiTableProps: UiTableProps) { - {publicReuseFacility.map((el: any,index) => ( + {publicReuseFacility.map((el: { [key: string]: string | number | boolean },index) => ( {headlist.map((head) => ( {el[head.id]}