From bf7708f658cc6299a3b775afe24459b5a808c54d Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Fri, 22 Sep 2017 21:20:54 +0200 Subject: Restructure component and container directories --- .../topology/building/BuildingSidebarComponent.js | 19 +++++++++++++++ .../building/NewRoomConstructionComponent.js | 27 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 src/components/app/sidebars/topology/building/BuildingSidebarComponent.js create mode 100644 src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js (limited to 'src/components/app/sidebars/topology/building') diff --git a/src/components/app/sidebars/topology/building/BuildingSidebarComponent.js b/src/components/app/sidebars/topology/building/BuildingSidebarComponent.js new file mode 100644 index 00000000..2bf81a48 --- /dev/null +++ b/src/components/app/sidebars/topology/building/BuildingSidebarComponent.js @@ -0,0 +1,19 @@ +import React from "react"; +import NewRoomConstructionContainer from "../../../../../containers/app/sidebars/topology/building/NewRoomConstructionContainer"; + +const BuildingSidebarComponent = ({inSimulation}) => { + return ( +
+

Building

+ {inSimulation ? +
+ + Click on individual rooms to see their stats! +
: + + } +
+ ); +}; + +export default BuildingSidebarComponent; diff --git a/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js b/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js new file mode 100644 index 00000000..d89b0ac0 --- /dev/null +++ b/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js @@ -0,0 +1,27 @@ +import React from "react"; + +const NewRoomConstructionComponent = ({onStart, onFinish, onCancel, currentRoomInConstruction}) => { + if (currentRoomInConstruction === -1) { + return ( +
+ + Construct a new room +
+ ); + } + return ( +
+
+ + Finalize new room +
+
+ + Cancel construction +
+
+ ); + +}; + +export default NewRoomConstructionComponent; -- cgit v1.2.3