@@ -4,12 +4,17 @@ import BlackBackSpaceSVG from '@/components/svg-component/BlackBackSpaceSVG';
4
4
import QuizScore from './QuizScore' ;
5
5
import QuizResultDetail from './QuizResultDetail' ;
6
6
import type { QuizResultWordData } from '@/fetcher/types' ;
7
- import { getQuizResultSharePath , QUIZ_PATH } from '@/routes/path' ;
7
+ import {
8
+ getQuizResultSharePath ,
9
+ QUIZ_PATH ,
10
+ WORD_LIST_PATH ,
11
+ } from '@/routes/path' ;
8
12
import { useRouter } from 'next/navigation' ;
9
13
import ShareButtonSvg from '@/components/svg-component/ShareButtonSvg.tsx' ;
10
14
import useAuthQuery from '@/hooks/query/useAuthQuery.ts' ;
11
15
import { useState } from 'react' ;
12
16
import LoginAlertModal from '@/components/common/LoginAlertModal.tsx' ;
17
+ import Link from 'next/link' ;
13
18
14
19
type Props = {
15
20
quizResultId : string ;
@@ -33,7 +38,6 @@ export default function QuizResult({
33
38
const isGuest = quizResultId === 'guest' ;
34
39
35
40
const handleNeedLogin = ( ) => {
36
- // NOTE: 2초간 로그인 toast UI
37
41
setIsOpenModal ( true ) ;
38
42
setTimeout ( ( ) => {
39
43
setIsOpenModal ( false ) ;
@@ -69,14 +73,19 @@ export default function QuizResult({
69
73
/>
70
74
< button
71
75
onClick = { ( ) => router . replace ( QUIZ_PATH ) }
72
- className = "bg-[#4057DB] rounded-[16px] mt-[24px] mb-[48px ] h-[50px ] font-semibold text-white w-full text-[16px]"
76
+ className = "bg-[#4057DB] rounded-[16px] mt-[24px] mb-[8px ] h-[54px ] font-semibold text-white w-full text-[16px]"
73
77
>
74
78
{ data ?. error && ! isGuest ? (
75
79
< span > 나도 도전하러 가기</ span >
76
80
) : (
77
81
< span > 다시 도전하러 가기</ span >
78
82
) }
79
83
</ button >
84
+ < Link href = { WORD_LIST_PATH } >
85
+ < button className = "rounded-[16px] mb-[31px] h-[54px] font-semibold text-[#4057DB] w-full text-[16px] border-[1px] border-[#EAEDFF]" >
86
+ 홈으로 가기
87
+ </ button >
88
+ </ Link >
80
89
< LoginAlertModal isOpen = { isOpenModal } />
81
90
</ div >
82
91
) ;
0 commit comments