From bbb802b4142d11f020994ac4d9ae9c1610ac4038 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Sat, 26 Aug 2017 13:53:21 +0200 Subject: Enable going from room to tile and back --- src/components/map/groups/TileGroup.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/components/map/groups/TileGroup.js') diff --git a/src/components/map/groups/TileGroup.js b/src/components/map/groups/TileGroup.js index 7493f953..5920a2b6 100644 --- a/src/components/map/groups/TileGroup.js +++ b/src/components/map/groups/TileGroup.js @@ -4,7 +4,7 @@ import Shapes from "../../../shapes/index"; import RoomTile from "../elements/RoomTile"; import RackGroup from "./RackGroup"; -const TileGroup = ({tile}) => { +const TileGroup = ({tile, onClick}) => { let tileObject; switch (tile.objectType) { case "RACK": @@ -15,7 +15,9 @@ const TileGroup = ({tile}) => { } return ( - + {tileObject} -- cgit v1.2.3