From 66d02cda0a2254c7e90ba443ceaac16a1e0adfd7 Mon Sep 17 00:00:00 2001 From: swcho Date: Tue, 5 Aug 2025 18:17:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=B9=A8=EC=88=98=EC=8B=AC=20=EB=B2=94?= =?UTF-8?q?=EB=A1=80=EC=97=90=20=EC=A7=84=ED=96=89=EB=B0=94(Progress=20Bar?= =?UTF-8?q?)=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../map/waterDepth/waterDepth.tsx | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx b/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx index 91ec47009..f039d7ad5 100644 --- a/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx +++ b/apps/sn/app/(map-layout)/map/waterDepth/waterDepth.tsx @@ -22,12 +22,16 @@ interface WaterDepthProps { onClose?: () => void; isPlaying: boolean; setIsPlaying: (isPlaying: boolean) => void; + totalSteps?: number; + currentStep?: number; } export function WaterDepth({ onClose, isPlaying, setIsPlaying, + totalSteps = 0, + currentStep = 0, }: WaterDepthProps) { useEffect(() => { @@ -38,10 +42,14 @@ export function WaterDepth({ setIsPlaying(!isPlaying); }; + // 진행률 계산 (0-100%) + const progressPercentage = totalSteps > 0 ? (currentStep / totalSteps) * 100 : 100; + + return ( <>
-
+
-
+
+
+
+
+
침 수 심