We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f259365 commit 93b35fcCopy full SHA for 93b35fc
1 file changed
src/app/notice/page.jsx
@@ -9,6 +9,7 @@ export default function NoticePage() {
9
const [category, setCategory] = useState('all');
10
const [status, setStatus] = useState('all');
11
const [selected, setSelected] = useState(null);
12
+ const [loading, setLoading] = useState(false);
13
14
const filtered = useMemo(() => {
15
return notices.filter((n) => {
@@ -18,6 +19,14 @@ export default function NoticePage() {
18
19
});
20
}, [category, status]);
21
22
+ if (!loading) {
23
+ return (
24
+ <div className="flex flex-col items-center justify-center min-h-[60vh] text-white">
25
+ <h2 className="text-2xl font-bold mb-2">Error</h2>
26
+ </div>
27
+ );
28
+ }
29
+
30
return (
31
<div className="px-6 tablet:px-10 desktop:px-16 py-10">
32
{/* Hero */}
0 commit comments