From 5c9582ca835cf440e7624a30adbe88182f7f902d Mon Sep 17 00:00:00 2001 From: Adrien Vannson Date: Sat, 4 Mar 2023 17:42:55 +0100 Subject: [PATCH] Fix warnings --- src/App.js | 28 +++++++++++++++++++++++----- src/Rooms.js | 17 ++++++++--------- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/App.js b/src/App.js index b6886af..6ece5a4 100644 --- a/src/App.js +++ b/src/App.js @@ -54,7 +54,9 @@ function ChangeFloor({ currentFloor, callbackFloorChanged }) { site.buildings.forEach(building => { building.floors.forEach(floor => { items.push( - {site.name} / {building.name} / {floor.name} + + {site.name} / {building.name} / {floor.name} + ) }) }) @@ -146,7 +148,10 @@ function RoomInformation({ roomId, setIsEditDialogOpen }) { names.length === 0 ? Aucun nom défini : names.map(name => { - return <>
+ return + +
+
}) } @@ -156,7 +161,10 @@ function RoomInformation({ roomId, setIsEditDialogOpen }) { users.length === 0 ? Aucun utilisateur défini : users.map(name => { - return <>
+ return + +
+
}) } @@ -262,7 +270,12 @@ function EditDialog({ isOpen, setIsOpen, room }) { Noms :
{names.map(name => { - return { removeName(name) }} /> + return { removeName(name) }} + /> })} {users.map(name => { - return { removeUser(name) }} /> + return { removeUser(name) }} + /> })} {rooms.map((room) => { - return <> - callbackRoomSelected(room.floors[0].id, room.idPlace)} - > - {room.namePlace[0]} - {room.nameBuilding} - - + return callbackRoomSelected(room.floors[0].id, room.idPlace)} + key={room.idPlace} + > + {room.namePlace[0]} + {room.nameBuilding} + })}