94 | {description && (
95 | {description}
96 | )}
97 |
103 |
104 | {selectedType &&
105 | selectedType.thisTypeName &&
106 | selectedType.height && (
107 |
108 | Set Floors
109 | {localTypesState &&
110 | Array.isArray(localTypesState.height) && (
111 |
112 | Each cell adds{" "}
113 | {squareQmPerCellSqM * localTypesState.height[1]}
114 | m²
115 |
116 | )}
117 |
118 |
124 | setLocalTypesState((localTypesState) => {
125 | const update = { ...localTypesState };
126 | const newHeight = [
127 | selectedType.height[0],
128 | val,
129 | selectedType.height[2],
130 | ];
131 | Object.assign(update, { height: newHeight });
132 | return update;
133 | })
134 | }
135 | // on change committed update the redux state
136 | onChangeCommitted={(e, val) => {
137 | setSelectedType({
138 | ...selectedType,
139 | height: [
140 | selectedType.height[0],
141 | val,
142 | selectedType.height[2],
143 | ],
144 | });
145 | }}
146 | min={selectedType.height[0]}
147 | value={
148 | localTypesState &&
149 | localTypesState[selectedType] &&
150 | localTypesState[selectedType].height[1]
151 | }
152 | max={selectedType.height[2]}
153 | />
154 |
155 | )}
156 | {LBCS && (
157 |
158 | LBCS
159 |
160 | {JSON.stringify(LBCS, null, "\t")}
161 |
162 |
163 | )}
164 | {NAICS && (
165 |
166 | NAICS
167 |
168 | {JSON.stringify(NAICS, null, "\t")}
169 |
170 |
171 | )}
172 |
173 |