File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ export default function PopularEvents() {
177177 >
178178 { filteredData . map ( event => (
179179 < div key = { event . id } className = { styles [ 'stat-item' ] } >
180- < div className = { `${ styles [ 'stat-label' ] } ${ darkMode ? 'text-light' : '' } ` } >
180+ < div
181+ data-testid = "stat-label"
182+ className = { `${ styles [ 'stat-label' ] } ${ darkMode ? 'text-light' : '' } ` }
183+ >
181184 { event . type }
182185 </ div >
183186
@@ -193,7 +196,9 @@ export default function PopularEvents() {
193196 </ div >
194197
195198 < div className = { `${ styles [ 'stat-value' ] } ${ darkMode ? 'text-light' : '' } ` } >
196- { `${ calculatePercentage ( event . attended , event . enrolled ) } % (${ event . attended } /${ event . enrolled } )` }
199+ { `${ calculatePercentage ( event . attended , event . enrolled ) } % (${ event . attended } /${
200+ event . enrolled
201+ } )`}
197202 </ div >
198203 </ div >
199204 ) ) }
@@ -229,9 +234,7 @@ export default function PopularEvents() {
229234 } `}
230235 >
231236 < div className = { styles [ 'summary-title' ] } > Most Popular Event</ div >
232- < div className = { styles [ 'summary-value' ] } >
233- { mostPopularEvent ?. type || 'N/A' }
234- </ div >
237+ < div className = { styles [ 'summary-value' ] } > { mostPopularEvent ?. type || 'N/A' } </ div >
235238 </ div >
236239
237240 < div
@@ -240,13 +243,11 @@ export default function PopularEvents() {
240243 } `}
241244 >
242245 < div className = { styles [ 'summary-title' ] } > Least Popular Event</ div >
243- < div className = { styles [ 'summary-value' ] } >
244- { leastPopularEvent ?. type || 'N/A' }
245- </ div >
246+ < div className = { styles [ 'summary-value' ] } > { leastPopularEvent ?. type || 'N/A' } </ div >
246247 </ div >
247248 </ >
248249 ) }
249250 </ div >
250251 </ div >
251252 ) ;
252- }
253+ }
You can’t perform that action at this time.
0 commit comments