appel de callback lorsqu'on clique sur un couloir enlevé

This commit is contained in:
Gabriel Dehame 2023-03-01 10:59:31 +01:00
parent 5c9564d4db
commit 8bb4758121

View File

@ -196,7 +196,7 @@ function newPolygon(element, positions, selectedRoom, callbackRoomSelected, call
else if (element["type"] === "C")
{
// In this case it is a corridor
return <Polygon positions={positions} key={element["id"] + color} color={"peru"} eventHandlers={{click: () => callbackRoomSelected(element["id"])}}>
return <Polygon positions={positions} key={element["id"] + color} color={"peru"}>
<Tooltip>{element["id"]}</Tooltip>
</Polygon>
}