File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export default function NoticePage() {
99 const [ category , setCategory ] = useState ( 'all' ) ;
1010 const [ status , setStatus ] = useState ( 'all' ) ;
1111 const [ selected , setSelected ] = useState ( null ) ;
12+ const [ loading , setLoading ] = useState ( false ) ;
1213
1314 const filtered = useMemo ( ( ) => {
1415 return notices . filter ( ( n ) => {
@@ -18,6 +19,14 @@ export default function NoticePage() {
1819 } ) ;
1920 } , [ category , status ] ) ;
2021
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+
2130 return (
2231 < div className = "px-6 tablet:px-10 desktop:px-16 py-10" >
2332 { /* Hero */ }
You can’t perform that action at this time.
0 commit comments