diff --git a/packages/common/business_components/src/ui/table/index.tsx b/packages/common/business_components/src/ui/table/index.tsx index 6a5033963..17360af12 100644 --- a/packages/common/business_components/src/ui/table/index.tsx +++ b/packages/common/business_components/src/ui/table/index.tsx @@ -3,29 +3,30 @@ import UiPageNations from "./uiPageNations"; interface UiTableProps { + headName: string; publicReuseFacility: any[]; headlist: { id: string; title: string; }[]; pageSize: number; total: number; + children: React.ReactNode|undefined; } export function UiTable(UiTableProps: UiTableProps) { - const { publicReuseFacility, headlist,pageSize , total} = UiTableProps; - let cur = 1; - + const { publicReuseFacility, headlist,pageSize , total, children,headName} = UiTableProps; + const cur = 1; return ( <> -

공공하수처리시설 목록

+

{headName}

- + {children? <>{children}: {headlist.map((head) => ( {head.title} ))} - - + } + {publicReuseFacility.map((el: any,index) => (