From bae50ffda15d573ef9168c1c8be7e958229a0357 Mon Sep 17 00:00:00 2001 From: shin Date: Wed, 11 Feb 2026 11:00:27 +0900 Subject: [PATCH] =?UTF-8?q?fix(pop-text):=20=EC=8B=9C=EA=B0=84/=EB=82=A0?= =?UTF-8?q?=EC=A7=9C=20=EC=8B=A4=EC=8B=9C=EA=B0=84=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=EC=9E=90=EB=8F=99=20=EC=A0=81=EC=9A=A9=20?= =?UTF-8?q?=EB=B0=8F=20=EB=9D=BC=EB=B2=A8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 실시간 업데이트 스위치 UI 제거 (datetime 타입은 항상 실시간) - "날짜/시간 설정" → "시간/날짜 설정" 라벨 변경 Co-authored-by: Cursor --- .../lib/registry/pop-components/pop-text.tsx | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/frontend/lib/registry/pop-components/pop-text.tsx b/frontend/lib/registry/pop-components/pop-text.tsx index dd51a158..ac37cac5 100644 --- a/frontend/lib/registry/pop-components/pop-text.tsx +++ b/frontend/lib/registry/pop-components/pop-text.tsx @@ -265,15 +265,14 @@ function DateTimePreview({ config }: { config?: PopTextConfig }) { ); } -// 시간/날짜 (실시간 지원) +// 시간/날짜 (항상 실시간) function DateTimeDisplay({ config }: { config?: PopTextConfig }) { const [now, setNow] = useState(new Date()); useEffect(() => { - if (!config?.isRealtime) return; const timer = setInterval(() => setNow(new Date()), 1000); return () => clearInterval(timer); - }, [config?.isRealtime]); + }, []); // 빌더 설정 또는 기존 dateFormat 사용 (하위 호환) const dateFormat = config?.dateTimeConfig @@ -455,19 +454,10 @@ export function PopTextConfigPanel({ {textType === "datetime" && ( <> - + {/* 포맷 빌더 UI */} - {/* 실시간 업데이트 */} -
- onUpdate({ ...config, isRealtime: v })} - /> - -
-