Parcourir la source

fix console err about key props

kaori il y a 4 ans
Parent
commit
dc567938d1

+ 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>
       );
       );
     });
     });