diff --git a/src/pages/Poster/PosterCreateForm.tsx b/src/pages/Poster/PosterCreateForm.tsx index c33fc4e..66e8d99 100644 --- a/src/pages/Poster/PosterCreateForm.tsx +++ b/src/pages/Poster/PosterCreateForm.tsx @@ -25,20 +25,22 @@ const PosterCreateForm: React.FC = ({ onSubmitted }) => { const [authNeeded, setAuthNeeded] = useState(false); const submit = async () => { - if (!file || submitting) return; - setSubmitting(true); - setError(null); - try { - const { id } = await createPosterJob(file, name.trim()); - onSubmitted(id); - } catch (e) { - if (e instanceof P2vAuthError) { - setAuthNeeded(true); - } else { - setError((e as Error).message); - } - setSubmitting(false); - } + // P2V 서버(:8010) 미연결 — 프론트만 구현된 상태라 제출 동작을 임시로 끈다. + // 서버 연결되면 아래 주석을 해제할 것. + // if (!file || submitting) return; + // setSubmitting(true); + // setError(null); + // try { + // const { id } = await createPosterJob(file, name.trim()); + // onSubmitted(id); + // } catch (e) { + // if (e instanceof P2vAuthError) { + // setAuthNeeded(true); + // } else { + // setError((e as Error).message); + // } + // setSubmitting(false); + // } }; if (authNeeded) { diff --git a/src/pages/Poster/StylingContent.tsx b/src/pages/Poster/StylingContent.tsx index 371b6fa..c5e9230 100644 --- a/src/pages/Poster/StylingContent.tsx +++ b/src/pages/Poster/StylingContent.tsx @@ -85,7 +85,12 @@ const StylingContent: React.FC = () => { } }, []); - useEffect(() => { loadAll(); }, [loadAll]); + useEffect(() => { + // P2V 서버(:8010) 미연결 — 프론트만 구현된 상태라 자동 로드를 임시로 끈다. + // 서버 연결되면 아래 주석을 해제할 것. (templates/categories/formats/hint 가 + // 계속 비어 있으면 아래 렌더링에서 템플릿 카드·제출 버튼이 자연히 비활성 상태가 된다.) + // loadAll(); + }, [loadAll]); const uploadReference = async (f: File) => { setRefBusy(true);