summaryrefslogtreecommitdiff
path: root/src/components/map/groups/RoomGroup.js
diff options
context:
space:
mode:
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}/>
))}