We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 027f8a8 commit 00a1333Copy full SHA for 00a1333
1 file changed
src/app/(public)/artists/error.tsx
@@ -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