File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ import styles from './ActivityList.module.css';
66import { mockActivities } from './mockActivities' ;
77
88function ActivityList ( ) {
9-
10-
119 const [ activities , setActivities ] = useState ( [ ] ) ;
1210 const [ loading , setLoading ] = useState ( true ) ;
1311 const [ error , setError ] = useState ( null ) ;
@@ -99,7 +97,9 @@ function ActivityList() {
9997 }
10098 } ) ;
10199
102- return [ ...typeOrder . keys ( ) ] . sort ( ( typeA , typeB ) => typeOrder . get ( typeA ) - typeOrder . get ( typeB ) ) ;
100+ return [ ...typeOrder . keys ( ) ] . sort (
101+ ( typeA , typeB ) => typeOrder . get ( typeA ) - typeOrder . get ( typeB ) ,
102+ ) ;
103103 } , [ activities ] ) ;
104104
105105 const filteredActivities = activities
@@ -222,17 +222,15 @@ function ActivityList() {
222222 }
223223 } }
224224 >
225-
226-
227- < li
228- key = { activity . id }
229- className = { `${ styles . activityItem } ${ darkMode ? styles . darkModeItem : '' } ` }
230- >
231- < strong > { activity . name } </ strong >
232- < span >
233- { activity . type } – { activity . date } – { activity . location }
234- </ span >
235- </ li >
225+ < li
226+ key = { activity . id }
227+ className = { `${ styles . activityItem } ${ darkMode ? styles . darkModeItem : '' } ` }
228+ >
229+ < strong > { activity . name } </ strong >
230+ < span >
231+ { activity . type } – { activity . date } – { activity . location }
232+ </ span >
233+ </ li >
236234 </ div >
237235 ) ) }
238236 </ ul >
Original file line number Diff line number Diff line change @@ -166,7 +166,8 @@ export const mockActivities = [
166166 type : 'Educational' ,
167167 date : '2026-09-10' ,
168168 time : '5:00 PM' ,
169- description : 'An introductory session covering practical generative AI tools, prompts, and use cases.' ,
169+ description :
170+ 'An introductory session covering practical generative AI tools, prompts, and use cases.' ,
170171 location : 'Tech Hub' ,
171172 } ,
172173 {
@@ -177,5 +178,5 @@ export const mockActivities = [
177178 time : '6:00 PM' ,
178179 description : 'Meet fellow readers for a guided discussion of this month’s featured book.' ,
179180 location : 'Library' ,
180- }
181+ } ,
181182] ;
You can’t perform that action at this time.
0 commit comments