summaryrefslogtreecommitdiff
path: root/src/components/map/groups/RoomGroup.js
diff options
context:
space:
mode:
authorGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-08-25 23:03:05 +0200
committerGeorgios Andreadis <g.andreadis@student.tudelft.nl>2017-09-23 10:05:44 +0200
commit8302923a08728d36746af3560ebc35685c2b9da5 (patch)
tree028b0e0db8f7e8e60d9127a522ceea49ec395952 /src/components/map/groups/RoomGroup.js
parent8f5e6d1e73f16e3cdd523f961d06e4b4eb5a8cef (diff)
Enable going from building to room and back
Diffstat (limited to 'src/components/map/groups/RoomGroup.js')
-rw-r--r--src/components/map/groups/RoomGroup.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/components/map/groups/RoomGroup.js b/src/components/map/groups/RoomGroup.js
index 5f349e3c..179a24a2 100644
--- a/src/components/map/groups/RoomGroup.js
+++ b/src/components/map/groups/RoomGroup.js
@@ -5,8 +5,10 @@ import {deriveWallLocations} from "../../../util/tile-calculations";
import WallSegment from "../elements/WallSegment";
import TileGroup from "./TileGroup";
-const RoomGroup = ({room}) => (
- <Group>
+const RoomGroup = ({room, onClick}) => (
+ <Group
+ onClick={onClick}
+ >
{room.tiles.map(tile => (
<TileGroup key={tile.id} tile={tile}/>
))}