@@ -20,7 +20,17 @@ import {
2020 Tooltip ,
2121} from '@mantine/core' ;
2222import { notifications } from '@mantine/notifications' ;
23- import { IconBell } from '@tabler/icons-react' ;
23+ import {
24+ IconAlertTriangle ,
25+ IconBell ,
26+ IconBrandSlack ,
27+ IconChartLine ,
28+ IconCheck ,
29+ IconChevronRight ,
30+ IconHelpCircle ,
31+ IconInfoCircleFilled ,
32+ IconTableRow ,
33+ } from '@tabler/icons-react' ;
2434import { useQueryClient } from '@tanstack/react-query' ;
2535
2636import { ErrorBoundary } from '@/components/ErrorBoundary' ;
@@ -312,7 +322,7 @@ function AlertDetails({ alert }: { alert: AlertsPageItem }) {
312322 { alert . dashboard ?. name }
313323 { tileName ? (
314324 < >
315- < i className = "bi bi-chevron-right fs-8 mx-1 " />
325+ < IconChevronRight size = { 14 } className = "mx-1" />
316326 { tileName }
317327 </ >
318328 ) : null }
@@ -338,11 +348,11 @@ function AlertDetails({ alert }: { alert: AlertsPageItem }) {
338348 const alertIcon = ( ( ) => {
339349 switch ( alert . source ) {
340350 case AlertSource . TILE :
341- return 'bi-graph-up' ;
351+ return < IconChartLine size = { 14 } /> ;
342352 case AlertSource . SAVED_SEARCH :
343- return 'bi-layout-text-sidebar-reverse' ;
353+ return < IconTableRow size = { 14 } /> ;
344354 default :
345- return 'bi-question' ;
355+ return < IconHelpCircle size = { 14 } /> ;
346356 }
347357 } ) ( ) ;
348358
@@ -359,9 +369,9 @@ function AlertDetails({ alert }: { alert: AlertsPageItem }) {
359369 const notificationMethod = React . useMemo ( ( ) => {
360370 if ( alert . channel . type === 'webhook' ) {
361371 return (
362- < span >
363- Notify via < i className = "bi bi-slack" > </ i > Webhook
364- </ span >
372+ < Group gap = { 2 } >
373+ Notify via < IconBrandSlack size = { 16 } / > Webhook
374+ </ Group >
365375 ) ;
366376 }
367377 } , [ alert ] ) ;
@@ -400,8 +410,10 @@ function AlertDetails({ alert }: { alert: AlertsPageItem }) {
400410 className = { styles . alertLink }
401411 title = { linkTitle }
402412 >
403- < i className = { `bi ${ alertIcon } me-2 fs-8` } />
404- { alertName }
413+ < Group gap = { 2 } >
414+ { alertIcon }
415+ { alertName }
416+ </ Group >
405417 </ Link >
406418 </ div >
407419 < div className = "fs-8 d-flex gap-2" >
@@ -435,18 +447,18 @@ function AlertCardList({ alerts }: { alerts: AlertsPageItem[] }) {
435447 < div className = "d-flex flex-column gap-4" >
436448 { alarmAlerts . length > 0 && (
437449 < div >
438- < div className = { styles . sectionHeader } >
439- < i className = "bi bi-exclamation-triangle" > </ i > Triggered
440- </ div >
450+ < Group className = { styles . sectionHeader } >
451+ < IconAlertTriangle size = { 14 } / > Triggered
452+ </ Group >
441453 { alarmAlerts . map ( ( alert , index ) => (
442454 < AlertDetails key = { index } alert = { alert } />
443455 ) ) }
444456 </ div >
445457 ) }
446458 < div >
447- < div className = { styles . sectionHeader } >
448- < i className = "bi bi-check-lg" > </ i > OK
449- </ div >
459+ < Group className = { styles . sectionHeader } >
460+ < IconCheck size = { 14 } / > OK
461+ </ Group >
450462 { okData . length === 0 && (
451463 < div className = "text-center my-4 fs-8" > No alerts</ div >
452464 ) }
@@ -472,7 +484,7 @@ export default function AlertsPage() {
472484 < div className = "my-4" >
473485 < Container maw = { 1500 } >
474486 < Alert
475- icon = { < i className = "bi bi-info-circle-fill " /> }
487+ icon = { < IconInfoCircleFilled size = { 16 } /> }
476488 color = "gray"
477489 py = "xs"
478490 mt = "md"
0 commit comments