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 })} - /> - -
-