11import { applySteps } from "@/features/apply/constants/steps" ;
22import { ApplyContextProvider } from "@/features/apply/contexts/ApplyContext" ;
3+ import { ApplyStepNavigator } from "@/features/apply/ui/ApplyStepNavigator" ;
34
45import { ApplyPayment } from "@/widgets/apply/ApplyPayment" ;
56import { ApplyPaymentFail } from "@/widgets/apply/ApplyPaymentFail" ;
@@ -13,8 +14,16 @@ export default function ApplyPage() {
1314 const { Funnel, Step, useStep } = useFunnel ( applySteps ) ;
1415 const { step, setStep } = useStep ( ) ;
1516
17+ const shouldShowNavigator = applySteps . slice ( 0 , - 2 ) . includes ( step as ( typeof applySteps ) [ number ] ) ;
18+
1619 return (
1720 < div >
21+ { shouldShowNavigator && (
22+ < header className = "mb-18" >
23+ < h1 className = "my-20 text-center text-[2.5rem] font-bold" > 모의수능 신청</ h1 >
24+ < ApplyStepNavigator step = { step } />
25+ </ header >
26+ ) }
1827 < Funnel >
1928 < Step name = "apply-step1" >
2029 < ApplyStep1 useStep = { { step : step as ( typeof applySteps ) [ number ] , setStep } } />
@@ -23,7 +32,7 @@ export default function ApplyPage() {
2332 < ApplyStep2 useStep = { { step : step as ( typeof applySteps ) [ number ] , setStep } } />
2433 </ Step >
2534 < Step name = "apply-payment" >
26- < ApplyPayment />
35+ < ApplyPayment useStep = { { step : step as ( typeof applySteps ) [ number ] , setStep } } />
2736 </ Step >
2837 < Step name = "apply-payment-success" >
2938 < ApplyPaymentSuccess />
0 commit comments