@@ -51,16 +51,19 @@ export const useTableColumns = (
5151 title = { `Open feed ${ cell . getValue < string > ( ) } page in new tab` }
5252 placement = 'top-start'
5353 >
54- < div
55- className = { 'navigable-list-item' }
54+ < Box
55+ sx = { {
56+ cursor : 'pointer' ,
57+ '&:hover' : { textDecoration : 'underline' , color : '#000' } ,
58+ } }
5659 onClick = { ( ) => {
5760 const url = `/feeds/${ cell . getValue < string > ( ) } ` ;
5861 window . open ( url , '_blank' ) ;
5962 } }
6063 >
6164 { renderedCellValue } { ' ' }
6265 < OpenInNew sx = { { verticalAlign : 'middle' } } fontSize = 'small' />
63- </ div >
66+ </ Box >
6467 </ Tooltip >
6568 ) ,
6669 } ,
@@ -157,20 +160,20 @@ export const useTableColumns = (
157160 Cell : ( { cell } : { cell : MRT_Cell < GTFSFeedMetrics > } ) => (
158161 < div >
159162 { cell . getValue < string [ ] > ( ) ?. map ( ( error , index ) => (
160- < div
163+ < Box
161164 key = { index }
162- style = { {
165+ sx = { {
163166 cursor : 'pointer' ,
164- marginBottom : 2 ,
165- padding : 1 ,
167+ marginBottom : '2px' ,
168+ padding : '1px' ,
169+ '&:hover' : { textDecoration : 'underline' , color : '#000' } ,
166170 } }
167- className = { 'navigable-list-item' }
168171 onClick = { ( ) => {
169172 router . push ( `/metrics/gtfs/notices?noticeCode=${ error } ` ) ;
170173 } }
171174 >
172175 { error }
173- </ div >
176+ </ Box >
174177 ) ) }
175178 </ div >
176179 ) ,
@@ -180,9 +183,20 @@ export const useTableColumns = (
180183 Header : (
181184 < span >
182185 Notice Severity :
183- < span className = 'notice-severity-error notice-severity-label' >
186+ < Box
187+ component = 'span'
188+ sx = { {
189+ borderRadius : '5px' ,
190+ padding : '5px' ,
191+ marginLeft : '5px' ,
192+ marginBottom : '2px' ,
193+ width : 'fit-content' ,
194+ backgroundColor : '#d54402' ,
195+ color : 'white' ,
196+ } }
197+ >
184198 ERROR
185- </ span >
199+ </ Box >
186200 </ span >
187201 ) ,
188202 Footer : ( ) => (
@@ -199,20 +213,20 @@ export const useTableColumns = (
199213 Cell : ( { cell } : { cell : MRT_Cell < GTFSFeedMetrics > } ) => (
200214 < div >
201215 { cell . getValue < string [ ] > ( ) ?. map ( ( warning , index ) => (
202- < div
216+ < Box
203217 key = { index }
204- style = { {
218+ sx = { {
205219 cursor : 'pointer' ,
206- marginBottom : 2 ,
207- padding : 1 ,
220+ marginBottom : '2px' ,
221+ padding : '1px' ,
222+ '&:hover' : { textDecoration : 'underline' , color : '#000' } ,
208223 } }
209- className = { 'navigable-list-item' }
210224 onClick = { ( ) => {
211225 router . push ( `/metrics/gtfs/notices?noticeCode=${ warning } ` ) ;
212226 } }
213227 >
214228 { warning }
215- </ div >
229+ </ Box >
216230 ) ) }
217231 </ div >
218232 ) ,
@@ -222,9 +236,20 @@ export const useTableColumns = (
222236 Header : (
223237 < span >
224238 Notice Severity :
225- < span className = 'notice-severity-warning notice-severity-label' >
239+ < Box
240+ component = 'span'
241+ sx = { {
242+ borderRadius : '5px' ,
243+ padding : '5px' ,
244+ marginLeft : '5px' ,
245+ marginBottom : '2px' ,
246+ width : 'fit-content' ,
247+ backgroundColor : '#f3c280' ,
248+ color : 'black' ,
249+ } }
250+ >
226251 WARNING
227- </ span >
252+ </ Box >
228253 </ span >
229254 ) ,
230255 Footer : ( ) => (
@@ -241,28 +266,39 @@ export const useTableColumns = (
241266 Header : (
242267 < span >
243268 Notice Severity :
244- < span className = 'notice-severity-info notice-severity-label' >
269+ < Box
270+ component = 'span'
271+ sx = { {
272+ borderRadius : '5px' ,
273+ padding : '5px' ,
274+ marginLeft : '5px' ,
275+ marginBottom : '2px' ,
276+ width : 'fit-content' ,
277+ backgroundColor : '#badfb7' ,
278+ color : 'black' ,
279+ } }
280+ >
245281 INFO
246- </ span >
282+ </ Box >
247283 </ span >
248284 ) ,
249285 Cell : ( { cell } : { cell : MRT_Cell < GTFSFeedMetrics > } ) => (
250286 < div >
251287 { cell . getValue < string [ ] > ( ) ?. map ( ( info , index ) => (
252- < div
288+ < Box
253289 key = { index }
254- style = { {
290+ sx = { {
255291 cursor : 'pointer' ,
256- marginBottom : 2 ,
257- padding : 1 ,
292+ marginBottom : '2px' ,
293+ padding : '1px' ,
294+ '&:hover' : { textDecoration : 'underline' , color : '#000' } ,
258295 } }
259- className = { 'navigable-list-item' }
260296 onClick = { ( ) => {
261297 router . push ( `/metrics/gtfs/notices?noticeCode=${ info } ` ) ;
262298 } }
263299 >
264300 { info }
265- </ div >
301+ </ Box >
266302 ) ) }
267303 </ div >
268304 ) ,
@@ -313,10 +349,16 @@ export const useTableColumns = (
313349 { group }
314350 </ div >
315351 { features . map ( ( featureData , index ) => (
316- < div
352+ < Box
317353 key = { index }
318- style = { { cursor : 'pointer' , marginLeft : '10px' } }
319- className = { 'navigable-list-item' }
354+ sx = { {
355+ cursor : 'pointer' ,
356+ marginLeft : '10px' ,
357+ '&:hover' : {
358+ textDecoration : 'underline' ,
359+ color : '#000' ,
360+ } ,
361+ } }
320362 onClick = { ( ) => {
321363 router . push (
322364 `/metrics/gtfs/features?featureName=${ featureData . feature } ` ,
@@ -332,7 +374,7 @@ export const useTableColumns = (
332374 < IconButton > { componentDecorator . icon } </ IconButton >
333375 </ Tooltip >
334376 ) }
335- </ div >
377+ </ Box >
336378 ) ) }
337379 </ div >
338380 ) ;
0 commit comments