From 9b406aac3dbeb3d1c33aea24d4c080f104fc32e8 Mon Sep 17 00:00:00 2001 From: JIeunhuh Date: Tue, 13 May 2025 17:34:19 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/sn/app/components/ui/modal.tsx | 2 +- apps/sn/app/components/ui/verticalTable.tsx | 4 +- apps/sn/app/map/components/common/index.ts | 13 +++- .../components/popupComponent/MsSwagePpl.tsx | 7 +- .../app/map/components/popupComponent/Ssc.tsx | 2 +- .../components/popupComponent/SwtrmtFclt.tsx | 68 ++++++++++--------- .../components/popupComponent/sewagePump.tsx | 2 +- .../popupComponent/stormWaterPump.tsx | 2 +- apps/sn/app/map/featureClickEventPopup.tsx | 11 +-- 9 files changed, 62 insertions(+), 49 deletions(-) diff --git a/apps/sn/app/components/ui/modal.tsx b/apps/sn/app/components/ui/modal.tsx index bc8085f71..e860ed7b9 100644 --- a/apps/sn/app/components/ui/modal.tsx +++ b/apps/sn/app/components/ui/modal.tsx @@ -13,7 +13,7 @@ const Modal: React.FC = ({ isModalOpen, setIsModalOpen, title, child return ( - + {title ? {title} : null} diff --git a/apps/sn/app/components/ui/verticalTable.tsx b/apps/sn/app/components/ui/verticalTable.tsx index 36451bfbd..3d6b10d91 100644 --- a/apps/sn/app/components/ui/verticalTable.tsx +++ b/apps/sn/app/components/ui/verticalTable.tsx @@ -8,7 +8,7 @@ type UiTableProps = { headlist: UiHeadProps[]; pageSize: number; total: number; - children: React.ReactNode | undefined; + children: Record | undefined; cellClick: ((index: number | undefined, headId: string) => void) | undefined; onPageChange: (page: number) => void; className?: string; @@ -82,7 +82,7 @@ export function VerticalTable({ {/* 데이터 값 또는 입력 필드 */} - {isEditable ? ( + {children && children[head.id] ? children[head.id] : isEditable ? ( head.type === "select" ? (