diff --git a/src/renderer/src/pages/notifications/local-notification-item.tsx b/src/renderer/src/pages/notifications/local-notification-item.tsx index 1003f9d5..30380965 100644 --- a/src/renderer/src/pages/notifications/local-notification-item.tsx +++ b/src/renderer/src/pages/notifications/local-notification-item.tsx @@ -25,7 +25,7 @@ export function LocalNotificationItem({ notification, onDismiss, onMarkAsRead, -}: LocalNotificationItemProps) { +}: Readonly) { const { t } = useTranslation("notifications_page"); const { formatDistance } = useDate(); const navigate = useNavigate(); @@ -64,18 +64,12 @@ export function LocalNotificationItem({ }; return ( -
{ - if (e.key === "Enter" || e.key === " ") { - handleClick(); - } - }} - role="button" - tabIndex={0} >
{notification.pictureUrl ? ( @@ -104,6 +98,6 @@ export function LocalNotificationItem({ > -
+ ); } diff --git a/src/renderer/src/pages/notifications/notification-item.tsx b/src/renderer/src/pages/notifications/notification-item.tsx index 976ab631..b250ffe8 100644 --- a/src/renderer/src/pages/notifications/notification-item.tsx +++ b/src/renderer/src/pages/notifications/notification-item.tsx @@ -172,20 +172,14 @@ export function NotificationItem({ }; return ( -
{ - if (e.key === "Enter" || e.key === " ") { - handleClick(); - } - }} - role="button" - tabIndex={0} >
)} -
+ ); }