File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 11import PrimaryButton from "@/components/button/PrimaryButton" ;
22import { 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 >
You can’t perform that action at this time.
0 commit comments