From 83255576082826b144bcc71f013c32a5bd6d4f81 Mon Sep 17 00:00:00 2001 From: Aizizi Yigaimu Date: Wed, 6 May 2020 14:18:26 -0400 Subject: [PATCH] Add cooling system right under minisplit heat pump system --- src/BuildingHeatingSystem.js | 64 +++++++++++++++++++++--------------- 1 file changed, 37 insertions(+), 27 deletions(-) diff --git a/src/BuildingHeatingSystem.js b/src/BuildingHeatingSystem.js index ef399925d..cef2abd23 100644 --- a/src/BuildingHeatingSystem.js +++ b/src/BuildingHeatingSystem.js @@ -65,9 +65,8 @@ export default class BuildingHeatingSystem extends React.Component { } render() { - let miniSplitforCooling = '' - miniSplitforCooling = (this.props.surveyId === 1 && this.state.answer === 100)? -
+ const miniSplitforCooling = this.props.surveyId === 1 && this.state.answer === 100 ? +
-
: - '' +
: ''; + const content = (
@@ -87,30 +88,39 @@ export default class BuildingHeatingSystem extends React.Component { { - this.props.answerIds.map((answerId, id) => { - return ( -
- - - - - -
+ this.props.answerIds.map((answerId, id) => { + const surveyOption = ( +
+ + + + + +
); - }) + + return this.props.surveyId === 1 && answerId === 100 ? ( +
+ { surveyOption } + { miniSplitforCooling } +
+ ) : + ( +
+ {surveyOption} +
+ ); + }) } - - { miniSplitforCooling } -
-- GitLab