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) {