From 751a9ef3a12c952fe179f256d854d0c4aa37e28e Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 4 Oct 2017 22:49:07 +0200 Subject: Apply prettier to codebase --- .../topology/building/BuildingSidebarComponent.js | 25 ++++++------ .../building/NewRoomConstructionComponent.js | 44 ++++++++++++---------- 2 files changed, 37 insertions(+), 32 deletions(-) (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 index 2bf81a48..f16c19f0 100644 --- a/src/components/app/sidebars/topology/building/BuildingSidebarComponent.js +++ b/src/components/app/sidebars/topology/building/BuildingSidebarComponent.js @@ -1,19 +1,20 @@ 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! -
: - - } +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 index d89b0ac0..a559c8dd 100644 --- a/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js +++ b/src/components/app/sidebars/topology/building/NewRoomConstructionComponent.js @@ -1,27 +1,31 @@ import React from "react"; -const NewRoomConstructionComponent = ({onStart, onFinish, onCancel, currentRoomInConstruction}) => { - if (currentRoomInConstruction === -1) { - return ( -
- - Construct a new room -
- ); - } +const NewRoomConstructionComponent = ({ + onStart, + onFinish, + onCancel, + currentRoomInConstruction +}) => { + if (currentRoomInConstruction === -1) { return ( -
-
- - Finalize new room -
-
- - Cancel construction -
-
+
+ + Construct a new room +
); - + } + return ( +
+
+ + Finalize new room +
+
+ + Cancel construction +
+
+ ); }; export default NewRoomConstructionComponent; -- cgit v1.2.3