Skip to content

Commit

Permalink
fix: ResultPage 뒤로가기 버튼 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Youn-Rha committed Nov 15, 2024
1 parent a486811 commit 41dd413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/ResultPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,7 +19,7 @@ export const ResultPage = () => {

return (
<Styles.Container>
<PageBar pageName="진단 결과" />
<PageBar pageName="진단 결과" onClick={() => navi("/mypage")}/>
<Styles.TextContainer>
<Text size="s" weight="bold">
작성한 답변들로 분석해보았어요
Expand Down

0 comments on commit 41dd413

Please sign in to comment.