From 3f736cd3db63f106eac02f220477b4a0f3b0eceb Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Thu, 31 Aug 2017 17:59:51 +0200 Subject: Implement room creation --- .../building/BuildingSidebarContentComponent.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/components/sidebars/topology/building/BuildingSidebarContentComponent.js (limited to 'src/components/sidebars/topology/building/BuildingSidebarContentComponent.js') diff --git a/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js b/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js new file mode 100644 index 00000000..b88b23b7 --- /dev/null +++ b/src/components/sidebars/topology/building/BuildingSidebarContentComponent.js @@ -0,0 +1,20 @@ +import React from "react"; +import CancelNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/CancelNewRoomConstructionButton"; +import FinishNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/FinishNewRoomConstructionButton"; +import StartNewRoomConstructionButton from "../../../../containers/sidebars/topology/building/StartNewRoomConstructionButton"; + +const BuildingSidebarContentComponent = ({currentRoomInConstruction}) => { + if (currentRoomInConstruction !== -1) { + return ( +
+ + +
+ ); + } + return ( + + ); +}; + +export default BuildingSidebarContentComponent; -- cgit v1.2.3