From 487d0f6d6a19350880617b5e854e4a2d41da9320 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=84=B1=EA=B2=BD?= Date: Mon, 24 Aug 2026 14:35:16 +0900 Subject: [PATCH] =?UTF-8?q?fix(poster):=20P2V=20=EC=84=9C=EB=B2=84=20?= =?UTF-8?q?=EB=AF=B8=EC=97=B0=EA=B2=B0=20=EC=83=81=ED=83=9C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=AC=B4=EB=B9=99=ED=8F=AC=EC=8A=A4=ED=84=B0=C2=B7?= =?UTF-8?q?=EC=8A=A4=ED=83=80=EC=9D=BC=EB=A7=81=20=EC=83=81=ED=98=B8?= =?UTF-8?q?=EC=9E=91=EC=9A=A9=20=EC=9E=84=EC=8B=9C=20=EB=B9=84=ED=99=9C?= =?UTF-8?q?=EC=84=B1=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Poster/PosterCreateForm.tsx | 30 ++++++++++++++------------- src/pages/Poster/StylingContent.tsx | 7 ++++++- 2 files changed, 22 insertions(+), 15 deletions(-) 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);