Просмотр исходного кода

fix console err about key props

kaori 4 лет назад
Родитель
Сommit
dc567938d1
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

+ 2 - 2
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -130,8 +130,8 @@ const InAppNotificationDropdown: FC<Props> = (props: Props) => {
     }
     }
     const notificationList = notifications.map((notification: IInAppNotification) => {
     const notificationList = notifications.map((notification: IInAppNotification) => {
       return (
       return (
-        <div className="my-2">
-          <InAppNotification key={notification._id} notification={notification} onClick={notificationClickHandler} />
+        <div className="my-2" key={notification._id}>
+          <InAppNotification notification={notification} onClick={notificationClickHandler} />
         </div>
         </div>
       );
       );
     });
     });