From 95b77d68f660cce86ec21c9b5be1a75f3ca5426c Mon Sep 17 00:00:00 2001 From: swcho Date: Mon, 14 Jul 2025 13:18:09 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20pbnstPrfmncSttn.tsx=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C=20=EC=97=90=EB=9F=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wr/app/map/featureClickEventPopup.tsx | 1 - apps/wr/app/map/pbnstPrfmncSttnPopup.tsx | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/apps/wr/app/map/featureClickEventPopup.tsx b/apps/wr/app/map/featureClickEventPopup.tsx index 8048d0997..41a2c8924 100644 --- a/apps/wr/app/map/featureClickEventPopup.tsx +++ b/apps/wr/app/map/featureClickEventPopup.tsx @@ -17,7 +17,6 @@ const FeatureClickEventPopup = ({ onClose, featureData }: { onClose: () => void, const [tableData, setTableData] = useState(null); // 피처 데이터 const [mntrngsData, setMntrngsData] = useState(false); // 수량/수질 측정 정보 const [headlist, setHeadlist] = useState<{ id: string; title: string; }[]>([]); // 컬럼리스트 변경상태 - const [headlist2, setHeadlist2] = useState<{ id: string; title: string; }[]>([]); // 컬럼리스트 변경상태 const [buttonChk, setButtonChk] = useState(true) const [fetchData, setfetchData] = useState(); // api 호출여부 const contentRef = useRef(null); diff --git a/apps/wr/app/map/pbnstPrfmncSttnPopup.tsx b/apps/wr/app/map/pbnstPrfmncSttnPopup.tsx index 46fa9ba59..79e1bf009 100644 --- a/apps/wr/app/map/pbnstPrfmncSttnPopup.tsx +++ b/apps/wr/app/map/pbnstPrfmncSttnPopup.tsx @@ -298,8 +298,6 @@ export default function PbnstPrfmncSttnPopup({ isVisible = true }: PbnstPrfmncSt let indstUswtr = 0; let inUsageSum = 0; let outUsageSum = 0; - const inUsageArr = []; - const outUsageArr = []; if (rawData) { @@ -326,9 +324,7 @@ export default function PbnstPrfmncSttnPopup({ isVisible = true }: PbnstPrfmncSt indstUswtr = element.indstUswtr //공업용수 inUsageSum = wshwtr + coolUswtr + cleanUswtr + drwtUswtr + dltnUswtr + ithlRswtr + ithlEtcUswtr + cleanToilUswtr + resn; - inUsageArr.push(inUsageSum) outUsageSum = lndwtr + hydUswtr + ugwtChr + farmUswtr + rvrKeepUswtr + indstUswtr; - outUsageArr.push(outUsageSum) const month = Number(element.ym.slice(4, 6)) data.push({ label: `${month}월`, "장내용수": inUsageSum, "장외용수": outUsageSum }) @@ -570,8 +566,8 @@ export default function PbnstPrfmncSttnPopup({ isVisible = true }: PbnstPrfmncSt pageSize={0} total={0} cellClick={undefined} - onPageChange={function (page: number): void { - throw new Error("Function not implemented.", page); + onPageChange={function (): void { + throw new Error("Function not implemented."); }}>