From eaefd4c1dc156bac58c0c3718c52f132bd241cd2 Mon Sep 17 00:00:00 2001 From: Harry Merritt Date: Sun, 10 Dec 2023 13:33:12 +0000 Subject: [PATCH] fix(client): tracker filter size conditional render logic and react key prop (#702) --- .../javascript/components/sidebar/NotificationsButton.tsx | 7 +++---- client/src/javascript/components/sidebar/SidebarFilter.tsx | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/client/src/javascript/components/sidebar/NotificationsButton.tsx b/client/src/javascript/components/sidebar/NotificationsButton.tsx index 154d81df..fc8deb41 100644 --- a/client/src/javascript/components/sidebar/NotificationsButton.tsx +++ b/client/src/javascript/components/sidebar/NotificationsButton.tsx @@ -63,15 +63,14 @@ const NotificationTopToolbar: FC = ({ }; interface NotificationItemProps { - index: number; notification: Notification; } -const NotificationItem: FC = ({index, notification}: NotificationItemProps) => { +const NotificationItem: FC = ({notification}: NotificationItemProps) => { const {i18n} = useLingui(); return ( -
  • +
  • {i18n._(`${notification.id}.heading`)} {' — '} @@ -195,7 +194,7 @@ const NotificationsButton: FC = observer(() => { style={{minHeight: prevHeight}} > {notifications.map((notification, index) => ( - + ))} = ({ {icon} {name} {count} - {size && } + {size != null && }
  • );