@@ -3,13 +3,12 @@ import { useParams, useRouter } from 'next/navigation';
33import Image from 'next/image' ;
44
55import { NavigationFooter , SmallButton , ProgressHeader , ImageContainer } from '@components' ;
6- import { useTrackEvent } from '@hooks ' ;
6+ import { trackEvent } from '@utils ' ;
77import { useReportContext } from '@/hooks/report' ;
88
99const Page = ( ) => {
1010 const { publishId, problemId } = useParams ( ) ;
1111 const router = useRouter ( ) ;
12- const { trackEvent } = useTrackEvent ( ) ;
1312
1413 const { problemNumber, seniorTipImageUrl, prescription } = useReportContext ( ) ;
1514
@@ -21,17 +20,13 @@ const Page = () => {
2120 } ;
2221
2322 const handleClickPrev = ( ) => {
24- trackEvent ( 'report_advanced_prev_button_click' , {
25- buttonLabel : '해설' ,
26- } ) ;
27- router . push ( `/report/${ publishId } /${ problemId } /analysis` ) ;
23+ trackEvent ( 'report_advanced_prev_button_click_to_prescription' ) ;
24+ router . push ( `/report/${ publishId } /${ problemId } /prescription` ) ;
2825 } ;
2926
3027 const handleClickNext = ( ) => {
31- trackEvent ( 'report_advanced_next_button_click' , {
32- buttonLabel : '포인팅' ,
33- } ) ;
34- router . push ( `/report/${ publishId } /${ problemId } /prescription` ) ;
28+ trackEvent ( 'report_advanced_next_button_click_to_list' ) ;
29+ router . push ( `/problem/list/${ publishId } ` ) ;
3530 } ;
3631
3732 if ( ! seniorTipImageUrl ) {
@@ -40,7 +35,7 @@ const Page = () => {
4035
4136 return (
4237 < >
43- < ProgressHeader progress = { 66 } />
38+ < ProgressHeader progress = { 100 } />
4439 < main className = 'px-[2rem] py-[8rem]' >
4540 < div className = 'flex items-center justify-between' >
4641 < h1 className = 'font-bold-18 text-main my-[0.8rem]' > 한 걸음 더</ h1 >
@@ -57,16 +52,16 @@ const Page = () => {
5752 < Image
5853 src = { seniorTipImageUrl ?? '' }
5954 alt = 'advanced'
60- className = { `w-full rounded-[1.6rem] object-contain` }
55+ className = { `w-full object-contain` }
6156 width = { 700 }
6257 height = { 200 }
6358 priority
6459 />
6560 </ ImageContainer >
6661 </ div >
6762 < NavigationFooter
68- prevLabel = '해설 '
69- nextLabel = '포인팅 '
63+ prevLabel = '포인팅 '
64+ nextLabel = '리스트로 '
7065 onClickPrev = { handleClickPrev }
7166 onClickNext = { handleClickNext }
7267 />
0 commit comments