Skip to content

Commit 00a1333

Browse files
committed
feat(artists-list) : 임시 에러페이지 생성 (나중에 삭제할 페이지)
1 parent 027f8a8 commit 00a1333

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/app/(public)/artists/error.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TODO: 나중에 이 페이지는 삭제하기
2+
3+
"use client";
4+
5+
import { useEffect } from "react";
6+
7+
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
8+
useEffect(() => {
9+
console.error(error);
10+
}, [error]);
11+
12+
return (
13+
<div className="flex min-h-[60vh] flex-col items-center justify-center gap-4">
14+
<h2 className="text-xl font-semibold">문제가 발생했습니다</h2>
15+
<p className="text-text-sub">아티스트 목록을 불러오는 중 오류가 발생했어요.</p>
16+
<button className="bg-point-main rounded px-4 py-2 text-white" onClick={() => reset()}>
17+
다시 시도
18+
</button>
19+
</div>
20+
);
21+
}

0 commit comments

Comments
 (0)