mirror of
https://gitlab.aliens-lyon.fr/encartes/web-interface.git
synced 2026-03-17 22:51:04 +01:00
appel de callback lorsqu'on clique sur un couloir enlevé
This commit is contained in:
parent
5c9564d4db
commit
8bb4758121
@ -196,7 +196,7 @@ function newPolygon(element, positions, selectedRoom, callbackRoomSelected, call
|
|||||||
else if (element["type"] === "C")
|
else if (element["type"] === "C")
|
||||||
{
|
{
|
||||||
// In this case it is a corridor
|
// 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>
|
<Tooltip>{element["id"]}</Tooltip>
|
||||||
</Polygon>
|
</Polygon>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user