diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-08-26 13:53:21 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-23 10:05:45 +0200 |
| commit | bbb802b4142d11f020994ac4d9ae9c1610ac4038 (patch) | |
| tree | ea5419b2c1c0fc2af22c11e94b4981a9445ec26c /src/components/map/groups/TileGroup.js | |
| parent | 8302923a08728d36746af3560ebc35685c2b9da5 (diff) | |
Enable going from room to tile and back
Diffstat (limited to 'src/components/map/groups/TileGroup.js')
| -rw-r--r-- | src/components/map/groups/TileGroup.js | 6 |
1 files changed, 4 insertions, 2 deletions
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 ( - <Group> + <Group + onClick={onClick} + > <RoomTile tile={tile}/> {tileObject} </Group> |
