From 41dd4131fd6417d7750036edfb7091b5ef7657fe Mon Sep 17 00:00:00 2001 From: ry0218 Date: Sat, 16 Nov 2024 04:43:31 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20ResultPage=20=EB=92=A4=EB=A1=9C=EA=B0=80?= =?UTF-8?q?=EA=B8=B0=20=EB=B2=84=ED=8A=BC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/ResultPage/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/ResultPage/index.tsx b/src/pages/ResultPage/index.tsx index 2d916bc..e7e7c17 100644 --- a/src/pages/ResultPage/index.tsx +++ b/src/pages/ResultPage/index.tsx @@ -4,9 +4,11 @@ import { Text } from "@/components/Text"; import * as Styles from "./index.style"; import { TextArea } from "@/components/TextArea"; import { useGetResult } from "@/hooks/ResultPage/useGetResult"; +import { useNavigate } from "react-router-dom"; export const ResultPage = () => { const { data, loading, error } = useGetResult(); + const navi = useNavigate(); // 로딩 중, 에러, 정상 데이터의 상태에 따라 placeholder 내용을 결정 const placeholderText = loading @@ -17,7 +19,7 @@ export const ResultPage = () => { return ( - + navi("/mypage")}/> 작성한 답변들로 분석해보았어요