@@ -17,7 +17,7 @@ import {
1717 useState ,
1818} from 'react' ;
1919import { AppContext } from '../context/App' ;
20- import { IconColor } from '../types' ;
20+ import { IconColor , Size } from '../types' ;
2121import type { Notification } from '../typesGitHub' ;
2222import { cn } from '../utils/cn' ;
2323import {
@@ -126,7 +126,7 @@ export const NotificationRow: FC<INotificationRow> = ({
126126 title = { notificationTitle }
127127 >
128128 < NotificationIcon
129- size = { groupByDate ? 20 : 16 }
129+ size = { groupByDate ? Size . XLARGE : Size . MEDIUM }
130130 aria-label = { notification . subject . type }
131131 />
132132 </ div >
@@ -144,7 +144,7 @@ export const NotificationRow: FC<INotificationRow> = ({
144144 < AvatarIcon
145145 title = { repoSlug }
146146 url = { repoAvatarUrl }
147- size = "medium"
147+ size = { Size . SMALL }
148148 defaultIcon = { MarkGithubIcon }
149149 />
150150 </ span >
@@ -180,13 +180,13 @@ export const NotificationRow: FC<INotificationRow> = ({
180180 < AvatarIcon
181181 title = { notification . subject . user . login }
182182 url = { notification . subject . user . avatar_url }
183- size = "small"
183+ size = { Size . XSMALL }
184184 defaultIcon = { FeedPersonIcon }
185185 />
186186 </ button >
187187 ) : (
188188 < div >
189- < FeedPersonIcon size = { 16 } className = { IconColor . GRAY } />
189+ < FeedPersonIcon size = { Size . MEDIUM } className = { IconColor . GRAY } />
190190 </ div >
191191 ) }
192192 < div title = { reason . description } > { reason . title } </ div >
@@ -261,7 +261,7 @@ export const NotificationRow: FC<INotificationRow> = ({
261261 markNotificationDone ( notification ) ;
262262 } }
263263 >
264- < CheckIcon size = { 16 } aria-label = "Mark as Done" />
264+ < CheckIcon size = { Size . MEDIUM } aria-label = "Mark as Done" />
265265 </ button >
266266
267267 < button
@@ -274,7 +274,7 @@ export const NotificationRow: FC<INotificationRow> = ({
274274 markNotificationRead ( notification ) ;
275275 } }
276276 >
277- < ReadIcon size = { 14 } aria-label = "Mark as Read" />
277+ < ReadIcon size = { Size . SMALL } aria-label = "Mark as Read" />
278278 </ button >
279279
280280 < button
@@ -283,7 +283,10 @@ export const NotificationRow: FC<INotificationRow> = ({
283283 title = "Unsubscribe from Thread"
284284 onClick = { unsubscribeFromThread }
285285 >
286- < BellSlashIcon size = { 14 } aria-label = "Unsubscribe from Thread" />
286+ < BellSlashIcon
287+ size = { Size . SMALL }
288+ aria-label = "Unsubscribe from Thread"
289+ />
287290 </ button >
288291 </ div >
289292 </ div >
0 commit comments