From b004e2461ea3116d318edbd8979a41747cdf5166 Mon Sep 17 00:00:00 2001 From: MIJUUUUU Date: Tue, 22 Sep 2026 14:25:32 +0900 Subject: [PATCH] =?UTF-8?q?fix(client):=20=EC=97=AC=ED=96=89=20=EC=B7=A8?= =?UTF-8?q?=ED=96=A5=20=EB=8B=A8=EA=B3=84=20=EB=92=A4=EB=A1=9C=EA=B0=80?= =?UTF-8?q?=EA=B8=B0=20=EC=88=9C=ED=99=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/trip/QuestionStep.tsx | 8 +++++++- src/components/ui/StepProgress.tsx | 4 +++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/components/trip/QuestionStep.tsx b/src/components/trip/QuestionStep.tsx index dd38db3..cdc113c 100644 --- a/src/components/trip/QuestionStep.tsx +++ b/src/components/trip/QuestionStep.tsx @@ -219,6 +219,12 @@ export default function QuestionStep({ const { draft, setAnswer } = useTripDraft(); const [questions, setQuestions] = useState(null); const [error, setError] = useState(false); + const backHref = + uiStep === 3 + ? "/trips/new/step2" + : uiStep === 2 + ? "/trips/new/step1" + : "/trips/new/date"; useEffect(() => { let cancelled = false; @@ -271,7 +277,7 @@ export default function QuestionStep({ return ( - +
diff --git a/src/components/ui/StepProgress.tsx b/src/components/ui/StepProgress.tsx index 8dae51d..e4d81ec 100644 --- a/src/components/ui/StepProgress.tsx +++ b/src/components/ui/StepProgress.tsx @@ -7,10 +7,12 @@ export default function StepProgress({ step, total, title, + backHref, }: { step: number; total: number; title?: string; + backHref?: string; }) { const router = useRouter(); const percent = (step / total) * 100; @@ -20,7 +22,7 @@ export default function StepProgress({