@@ -8,7 +8,6 @@ import { GroupBy, Opacity, Size } from '../../types';
88import type { Notification } from '../../typesGitHub' ;
99import { cn } from '../../utils/cn' ;
1010import { isMarkAsDoneFeatureSupported } from '../../utils/features' ;
11- import { formatForDisplay } from '../../utils/helpers' ;
1211import { openNotification } from '../../utils/links' ;
1312import { createNotificationHandler } from '../../utils/notifications/handlers' ;
1413import { HoverButton } from '../primitives/HoverButton' ;
@@ -72,21 +71,11 @@ export const NotificationRow: FC<INotificationRow> = ({
7271
7372 const handler = createNotificationHandler ( notification ) ;
7473
75- const NotificationIcon = handler . getIcon ( notification . subject ) ;
76- const iconColor = handler . getIconColor ( notification . subject ) ;
77-
78- const notificationType = formatForDisplay ( [
79- notification . subject . state ,
80- notification . subject . type ,
81- ] ) ;
82-
83- const notificationNumber = notification . subject ?. number
84- ? `#${ notification . subject . number } `
85- : '' ;
86-
87- const notificationTitle = notificationNumber
88- ? `${ notification . subject . title } [${ notificationNumber } ]`
89- : notification . subject . title ;
74+ const NotificationIcon = handler . iconType ( notification . subject ) ;
75+ const iconColor = handler . iconColor ( notification . subject ) ;
76+ const notificationType = handler . formattedNotificationType ( notification ) ;
77+ const notificationNumber = handler . formattedNotificationNumber ( notification ) ;
78+ const notificationTitle = handler . formattedNotificationTitle ( notification ) ;
9079
9180 const groupByDate = settings . groupBy === GroupBy . DATE ;
9281
0 commit comments