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 --- .../building/NewRoomConstructionComponent.js | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js (limited to 'src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js') 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