Skip to content

Commit 6801a89

Browse files
committed
chore: mode -> statuscode 정정
1 parent 936ebe5 commit 6801a89

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const App = () => {
9494
<Route path="/mbti-test" element={<MbtiTestIntro />} />
9595
<Route path="/mbti-test-progress" element={<MbtiTestQuestions />} />
9696
<Route path="/mbti-test-result" element={<MbtiTestResult />} />
97-
<Route path="*" element={<Error mode="500" />} />
97+
<Route path="*" element={<Error statusCode="500" />} />
9898
</Routes>
9999
</CenteredLayout>
100100
</Router>

src/pages/Error.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PrimaryButton from "@/components/button/PrimaryButton";
22
import { useNavigate } from "react-router-dom";
33

4-
const Error = ({ mode }: { mode: "401" | "404" | "500" }) => {
4+
const Error = ({ statusCode }: { statusCode: "401" | "404" | "500" }) => {
55
const navigate = useNavigate();
66

77
const content = {
@@ -34,14 +34,14 @@ const Error = ({ mode }: { mode: "401" | "404" | "500" }) => {
3434
<main className="relative flex flex-col items-center bg-white">
3535
<div className="absolute bottom-[372px] flex h-[196px] flex-col items-center justify-between">
3636
<img src="/icon/error.svg" alt="에러 아이콘" width={63} height={63} />
37-
<h1 className="text-2xl font-bold ">{content[mode].title}</h1>
37+
<h1 className="text-2xl font-bold ">{content[statusCode].title}</h1>
3838
<p className="text-center whitespace-pre-wrap text-gray-600">
39-
{content[mode].description}
39+
{content[statusCode].description}
4040
</p>
4141
</div>
4242
<div className="absolute bottom-[60px]">
43-
<PrimaryButton size="md" onClick={content[mode].onClick}>
44-
{content[mode].buttonTitle}
43+
<PrimaryButton size="md" onClick={content[statusCode].onClick}>
44+
{content[statusCode].buttonTitle}
4545
</PrimaryButton>
4646
</div>
4747
</main>

0 commit comments

Comments
 (0)