From 1ddbbd3563af77a218020021ea50a8832900b4db Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Tue, 22 Aug 2017 17:08:55 +0200 Subject: Add route logic for construction routes --- src/components/map/groups/DatacenterGroup.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/components/map/groups/DatacenterGroup.js (limited to 'src/components/map/groups/DatacenterGroup.js') diff --git a/src/components/map/groups/DatacenterGroup.js b/src/components/map/groups/DatacenterGroup.js new file mode 100644 index 00000000..3b7a086b --- /dev/null +++ b/src/components/map/groups/DatacenterGroup.js @@ -0,0 +1,17 @@ +import React from "react"; +import {Group} from "react-konva"; +import RoomGroup from "./RoomGroup"; + +const DatacenterGroup = ({datacenter}) => ( + + {datacenter.rooms.map(room => ( + + ))} + +); + +DatacenterGroup.propTypes = { + datacenter: Shapes.Datacenter, +}; + +export default DatacenterGroup; -- cgit v1.2.3