Skip to content

Conversation

@junjeeong
Copy link
Collaborator

@junjeeong junjeeong commented Apr 17, 2025

Pull requests

✅ 작업한 내용

  • 401, 404, 500 erorr가 날 때 보여줄 엣지 케이스 컴포넌트를 Error 컴포넌트 하나로 만들었습니다.

🔢 #201

❗️PR Point

  • 401,404,500 상태 코드를(string) prop으로 전달해주면 상응하는 에러 페이지가 렌더링 됩니다.

📸 스크린샷

404.mov

@junjeeong junjeeong added the 👩‍💻 Feat 새로운 기능 label Apr 17, 2025
@junjeeong junjeeong self-assigned this Apr 17, 2025
@junjeeong junjeeong linked an issue Apr 17, 2025 that may be closed by this pull request
@junjeeong junjeeong changed the title feat: 404.tsx 개발 feat: 401,404,500 엣지케이스 Error 컴포넌트로 통일 Apr 17, 2025
@junjeeong junjeeong requested a review from Soohyuniii April 17, 2025 13:06
import PrimaryButton from "@/components/button/PrimaryButton";
import { useNavigate } from "react-router-dom";

const Error = ({ mode }: { mode: "401" | "404" | "500" }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mode가 상태 코드이므로 statusCode나 code등의 이름을 사용하면 좋을 것 같습니다!

Copy link
Collaborator Author

@junjeeong junjeeong Apr 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6801a89 반영했습니다!

@junjeeong junjeeong merged commit 15b0b8d into dev Apr 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👩‍💻 Feat 새로운 기능

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: 엣지 케이스 페이지 개발

3 participants