@hedia/recommendation-screen 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,8 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
3
6
  <component name="BranchesTreeState">
4
7
  <expand>
5
8
  <path>
@@ -26,9 +29,7 @@
26
29
  </component>
27
30
  <component name="ChangeListManager">
28
31
  <list default="true" id="bceba75c-4c15-4bdc-9b41-023f63a30830" name="Default Changelist" comment="">
29
- <change beforePath="$PROJECT_DIR$/App.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/App.tsx" afterDir="false" />
30
- <change beforePath="$PROJECT_DIR$/src/RecommendationScreen.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/RecommendationScreen.tsx" afterDir="false" />
31
- <change beforePath="$PROJECT_DIR$/src/utils/RecommendationUtils.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/utils/RecommendationUtils.ts" afterDir="false" />
32
+ <change beforePath="$PROJECT_DIR$/src/components/InvisibleNumberInput.tsx" beforeDir="false" afterPath="$PROJECT_DIR$/src/components/InvisibleNumberInput.tsx" afterDir="false" />
32
33
  </list>
33
34
  <option name="SHOW_DIALOG" value="false" />
34
35
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -164,7 +165,11 @@
164
165
  <workItem from="1598549768243" duration="327000" />
165
166
  <workItem from="1598599347013" duration="7546000" />
166
167
  <workItem from="1598858637503" duration="10795000" />
167
- <workItem from="1598949840662" duration="7868000" />
168
+ <workItem from="1598949840662" duration="19791000" />
169
+ <workItem from="1599031274561" duration="12226000" />
170
+ <workItem from="1599119614705" duration="6081000" />
171
+ <workItem from="1599205746476" duration="8368000" />
172
+ <workItem from="1599465060245" duration="4106000" />
168
173
  </task>
169
174
  <servers />
170
175
  </component>
@@ -172,60 +177,7 @@
172
177
  <option name="version" value="3" />
173
178
  <option name="exactExcludedFiles">
174
179
  <list>
175
- <option value="$PROJECT_DIR$/App.jsx" />
176
- <option value="$PROJECT_DIR$/App.d.ts" />
177
- <option value="$PROJECT_DIR$/src/types/enum.d.ts" />
178
- <option value="$PROJECT_DIR$/src/types/enum.js" />
179
- <option value="$PROJECT_DIR$/src/types/types.d.ts" />
180
- <option value="$PROJECT_DIR$/src/types/types.js" />
181
180
  <option value="$PROJECT_DIR$/index.js" />
182
- <option value="$PROJECT_DIR$/index.d.ts" />
183
- <option value="$PROJECT_DIR$/src/RecommendationScreen.d.ts" />
184
- <option value="$PROJECT_DIR$/src/RecommendationScreen.jsx" />
185
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.d.ts" />
186
- <option value="$PROJECT_DIR$/src/components/InfoBars.jsx" />
187
- <option value="$PROJECT_DIR$/src/components/Header.jsx" />
188
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.d.ts" />
189
- <option value="$PROJECT_DIR$/src/components/Header.d.ts" />
190
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.d.ts" />
191
- <option value="$PROJECT_DIR$/src/components/InfoBars.d.ts" />
192
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.d.ts" />
193
- <option value="$PROJECT_DIR$/src/components/RecommendationModal.jsx" />
194
- <option value="$PROJECT_DIR$/src/components/Remeasure.d.ts" />
195
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.d.ts" />
196
- <option value="$PROJECT_DIR$/src/components/Remeasure.jsx" />
197
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.d.ts" />
198
- <option value="$PROJECT_DIR$/src/components/RecommendedCarbs.jsx" />
199
- <option value="$PROJECT_DIR$/src/components/InvisibleNumberInput.jsx" />
200
- <option value="$PROJECT_DIR$/src/components/ExitModal.jsx" />
201
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.d.ts" />
202
- <option value="$PROJECT_DIR$/src/components/activity/Activity.d.ts" />
203
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.d.ts" />
204
- <option value="$PROJECT_DIR$/src/components/activity/Activity.jsx" />
205
- <option value="$PROJECT_DIR$/src/components/TransferToLogbook.jsx" />
206
- <option value="$PROJECT_DIR$/src/components/ExitModal.d.ts" />
207
- <option value="$PROJECT_DIR$/src/components/RecommendedInsulin.jsx" />
208
- <option value="$PROJECT_DIR$/src/components/RecentInsulin.jsx" />
209
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.d.ts" />
210
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.d.ts" />
211
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.jsx" />
212
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.js" />
213
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIcon.jsx" />
214
- <option value="$PROJECT_DIR$/src/components/activity/ActivityIntensity.jsx" />
215
- <option value="$PROJECT_DIR$/src/components/mood/MoodIcon.jsx" />
216
- <option value="$PROJECT_DIR$/src/components/mood/Emotion.jsx" />
217
- <option value="$PROJECT_DIR$/src/utils/Constants.d.ts" />
218
- <option value="$PROJECT_DIR$/src/utils/Utils.d.ts" />
219
- <option value="$PROJECT_DIR$/src/utils/Validations.js" />
220
- <option value="$PROJECT_DIR$/src/utils/Utils.js" />
221
- <option value="$PROJECT_DIR$/src/utils/AttentionMessages.d.ts" />
222
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.jsx" />
223
- <option value="$PROJECT_DIR$/src/utils/RecommendationUtils.d.ts" />
224
- <option value="$PROJECT_DIR$/src/utils/RecommendationError.d.ts" />
225
- <option value="$PROJECT_DIR$/src/utils/Validations.d.ts" />
226
- <option value="$PROJECT_DIR$/src/utils/Constants.js" />
227
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.js" />
228
- <option value="$PROJECT_DIR$/src/locale/i18nUtils.d.ts" />
229
181
  </list>
230
182
  </option>
231
183
  </component>
@@ -258,6 +210,10 @@
258
210
  <screen x="0" y="23" width="1792" height="1097" />
259
211
  </state>
260
212
  <state x="360" y="233" key="#com.intellij.execution.impl.EditConfigurationsDialog/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596109376244" />
213
+ <state x="2565" y="-159" key="#com.intellij.ide.util.MemberChooser" timestamp="1599035564109">
214
+ <screen x="1792" y="-410" width="1920" height="1057" />
215
+ </state>
216
+ <state x="2565" y="-159" key="#com.intellij.ide.util.MemberChooser/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599035564109" />
261
217
  <state x="663" y="429" key="#com.jetbrains.plugins.reactnative.ReactNativePackagerConfigurationEditor" timestamp="1596109375456">
262
218
  <screen x="0" y="23" width="1792" height="1097" />
263
219
  </state>
@@ -273,46 +229,47 @@
273
229
  <state x="0" y="123" width="1792" height="897" key="DiffContextDialog/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597747801467" />
274
230
  <state x="0" y="123" width="1792" height="897" key="DiffContextDialog/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1597836504040" />
275
231
  <state x="1792" y="-314" width="1920" height="865" key="DiffContextDialog/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598603549140" />
276
- <state width="1604" height="300" key="GridCell.Tab.0.bottom" timestamp="1598953261143">
277
- <screen x="1792" y="-195" width="3440" height="1417" />
232
+ <state width="1276" height="270" key="GridCell.Tab.0.bottom" timestamp="1599230158300">
233
+ <screen x="0" y="23" width="1792" height="1097" />
278
234
  </state>
279
235
  <state width="1750" height="261" key="GridCell.Tab.0.bottom/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051670" />
280
236
  <state width="1878" height="249" key="GridCell.Tab.0.bottom/0.23.1792.1097@0.23.1792.1097" timestamp="1596482378171" />
281
237
  <state width="1750" height="383" key="GridCell.Tab.0.bottom/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008184" />
282
- <state width="1604" height="300" key="GridCell.Tab.0.bottom/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598953261143" />
283
- <state width="1750" height="220" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598886018496" />
284
- <state width="1878" height="210" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598625367900" />
285
- <state width="1604" height="300" key="GridCell.Tab.0.center" timestamp="1598953261142">
286
- <screen x="1792" y="-195" width="3440" height="1417" />
238
+ <state width="1678" height="367" key="GridCell.Tab.0.bottom/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599152764316" />
239
+ <state width="1276" height="270" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599230158300" />
240
+ <state width="1878" height="259" key="GridCell.Tab.0.bottom/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599060151002" />
241
+ <state width="1276" height="270" key="GridCell.Tab.0.center" timestamp="1599230158300">
242
+ <screen x="0" y="23" width="1792" height="1097" />
287
243
  </state>
288
244
  <state width="1750" height="261" key="GridCell.Tab.0.center/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051669" />
289
245
  <state width="1878" height="249" key="GridCell.Tab.0.center/0.23.1792.1097@0.23.1792.1097" timestamp="1596482378170" />
290
246
  <state width="1750" height="383" key="GridCell.Tab.0.center/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008183" />
291
- <state width="1604" height="300" key="GridCell.Tab.0.center/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598953261142" />
292
- <state width="1750" height="220" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598886018494" />
293
- <state width="1878" height="210" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598625367899" />
294
- <state width="1604" height="300" key="GridCell.Tab.0.left" timestamp="1598953261142">
295
- <screen x="1792" y="-195" width="3440" height="1417" />
247
+ <state width="1678" height="367" key="GridCell.Tab.0.center/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599152764316" />
248
+ <state width="1276" height="270" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599230158300" />
249
+ <state width="1878" height="259" key="GridCell.Tab.0.center/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599060151001" />
250
+ <state width="1276" height="270" key="GridCell.Tab.0.left" timestamp="1599230158299">
251
+ <screen x="0" y="23" width="1792" height="1097" />
296
252
  </state>
297
253
  <state width="1750" height="261" key="GridCell.Tab.0.left/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051668" />
298
254
  <state width="1878" height="249" key="GridCell.Tab.0.left/0.23.1792.1097@0.23.1792.1097" timestamp="1596482378170" />
299
255
  <state width="1750" height="383" key="GridCell.Tab.0.left/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008182" />
300
- <state width="1604" height="300" key="GridCell.Tab.0.left/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598953261142" />
301
- <state width="1750" height="220" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598886018494" />
302
- <state width="1878" height="210" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598625367899" />
303
- <state width="1604" height="300" key="GridCell.Tab.0.right" timestamp="1598953261143">
304
- <screen x="1792" y="-195" width="3440" height="1417" />
256
+ <state width="1678" height="367" key="GridCell.Tab.0.left/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599152764315" />
257
+ <state width="1276" height="270" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599230158299" />
258
+ <state width="1878" height="259" key="GridCell.Tab.0.left/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599060150995" />
259
+ <state width="1276" height="270" key="GridCell.Tab.0.right" timestamp="1599230158300">
260
+ <screen x="0" y="23" width="1792" height="1097" />
305
261
  </state>
306
262
  <state width="1750" height="261" key="GridCell.Tab.0.right/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596194051669" />
307
263
  <state width="1878" height="249" key="GridCell.Tab.0.right/0.23.1792.1097@0.23.1792.1097" timestamp="1596482378171" />
308
264
  <state width="1750" height="383" key="GridCell.Tab.0.right/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597945008183" />
309
- <state width="1604" height="300" key="GridCell.Tab.0.right/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598953261143" />
310
- <state width="1750" height="220" key="GridCell.Tab.0.right/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598886018495" />
311
- <state width="1878" height="210" key="GridCell.Tab.0.right/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1598625367899" />
312
- <state x="511" y="303" key="IDE.errors.dialog" timestamp="1597308623997">
313
- <screen x="0" y="23" width="1792" height="1097" />
265
+ <state width="1678" height="367" key="GridCell.Tab.0.right/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599152764316" />
266
+ <state width="1276" height="270" key="GridCell.Tab.0.right/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599230158300" />
267
+ <state width="1878" height="259" key="GridCell.Tab.0.right/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599060151002" />
268
+ <state x="2773" y="167" key="IDE.errors.dialog" timestamp="1598973647546">
269
+ <screen x="1792" y="-195" width="3440" height="1417" />
314
270
  </state>
315
271
  <state x="511" y="303" key="IDE.errors.dialog/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597308623997" />
272
+ <state x="2773" y="167" key="IDE.errors.dialog/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598973647546" />
316
273
  <state x="2340" y="-140" key="IDE.errors.dialog/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1596547237176" />
317
274
  <state x="0" y="23" width="1792" height="1097" key="MergeDialog" timestamp="1597409959598">
318
275
  <screen x="0" y="23" width="1792" height="1097" />
@@ -322,11 +279,12 @@
322
279
  <screen x="0" y="23" width="1792" height="1097" />
323
280
  </state>
324
281
  <state x="528" y="332" key="MultipleFileMergeDialog/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1597409961435" />
325
- <state x="508" y="198" key="RollbackChangesDialog" timestamp="1597836481148">
326
- <screen x="0" y="23" width="1792" height="1097" />
282
+ <state x="2767" y="31" key="RollbackChangesDialog" timestamp="1598965839229">
283
+ <screen x="1792" y="-195" width="3440" height="1417" />
327
284
  </state>
328
285
  <state x="508" y="198" key="RollbackChangesDialog/0.23.1792.1097@0.23.1792.1097" timestamp="1596191567466" />
329
286
  <state x="508" y="198" key="RollbackChangesDialog/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597748577571" />
287
+ <state x="2767" y="31" key="RollbackChangesDialog/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598965839229" />
330
288
  <state x="508" y="198" key="RollbackChangesDialog/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1597836481148" />
331
289
  <state x="397" y="210" key="SettingsEditor" timestamp="1596110346829">
332
290
  <screen x="0" y="23" width="1792" height="1097" />
@@ -336,23 +294,27 @@
336
294
  <screen x="0" y="23" width="1792" height="1097" />
337
295
  </state>
338
296
  <state x="428" y="230" key="com.intellij.openapi.vcs.changes.SpecificFilesViewDialog/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596103115204" />
339
- <state x="2863" y="176" width="2369" height="738" key="find.popup" timestamp="1598961042754">
340
- <screen x="1792" y="-195" width="3440" height="1417" />
297
+ <state x="558" y="310" width="1234" height="580" key="find.popup" timestamp="1599469543819">
298
+ <screen x="0" y="23" width="1792" height="1097" />
341
299
  </state>
342
300
  <state x="559" y="310" width="1233" height="522" key="find.popup/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596116959250" />
343
301
  <state x="559" y="310" width="1233" height="522" key="find.popup/0.23.1792.1097@0.23.1792.1097" timestamp="1596191045450" />
344
302
  <state x="558" y="310" width="1234" height="580" key="find.popup/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597748403272" />
345
- <state x="2863" y="176" width="2369" height="738" key="find.popup/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598961042754" />
346
- <state x="558" y="310" width="1234" height="580" key="find.popup/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598882534515" />
347
- <state x="2390" y="-133" width="1322" height="550" key="find.popup/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1597071162908" />
348
- <state x="2484" y="121" width="1287" height="875" key="search.everywhere.popup" timestamp="1598960846257">
349
- <screen x="1792" y="-195" width="3440" height="1417" />
303
+ <state x="2863" y="176" width="2369" height="738" key="find.popup/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599137555658" />
304
+ <state x="558" y="310" width="1234" height="580" key="find.popup/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599469543819" />
305
+ <state x="2390" y="-133" width="1322" height="582" key="find.popup/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599038215964" />
306
+ <state x="2477" y="-143" key="refactoring.ChangeSignatureDialog" timestamp="1599040674381">
307
+ <screen x="1792" y="-410" width="1920" height="1057" />
308
+ </state>
309
+ <state x="2477" y="-143" key="refactoring.ChangeSignatureDialog/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599040674381" />
310
+ <state x="2178" y="-174" width="718" height="652" key="search.everywhere.popup" timestamp="1599489043631">
311
+ <screen x="1792" y="-410" width="1920" height="1057" />
350
312
  </state>
351
313
  <state x="360" y="268" width="670" height="676" key="search.everywhere.popup/-1920.-66.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1596101738778" />
352
314
  <state x="360" y="268" width="670" height="676" key="search.everywhere.popup/0.23.1792.1097@0.23.1792.1097" timestamp="1596191050648" />
353
315
  <state x="360" y="268" width="671" height="677" key="search.everywhere.popup/1792.-195.3440.1417/0.23.1792.1097@0.23.1792.1097" timestamp="1597748285464" />
354
- <state x="2484" y="121" width="1287" height="875" key="search.everywhere.popup/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1598960846257" />
355
- <state x="360" y="268" width="671" height="677" key="search.everywhere.popup/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1598870468987" />
356
- <state x="2178" y="-174" width="718" height="652" key="search.everywhere.popup/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1597841174345" />
316
+ <state x="2484" y="121" width="1287" height="875" key="search.everywhere.popup/1792.-195.3440.1417/0.23.1792.1097@1792.-195.3440.1417" timestamp="1599137557476" />
317
+ <state x="360" y="268" width="671" height="677" key="search.everywhere.popup/1792.-410.1920.1057/0.23.1792.1097@0.23.1792.1097" timestamp="1599216348282" />
318
+ <state x="2178" y="-174" width="718" height="652" key="search.everywhere.popup/1792.-410.1920.1057/0.23.1792.1097@1792.-410.1920.1057" timestamp="1599489043631" />
357
319
  </component>
358
320
  </project>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -166,7 +166,7 @@ class RecommendationScreen extends react_1.default.Component {
166
166
  return (<react_2.I18nProvider language={this.props.language} i18n={i18nUtils_1.i18n}>
167
167
  <react_native_1.ScrollView style={containerStyles.container} ref={(view) => (this.scrollView = view)}>
168
168
  <Header_1.default exitCallback={this.onExit}/>
169
- <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Active Insulin`)} value={activeInsulin ? `${activeInsulin.toFixed(1)}` : null} units={i18nUtils_1.i18n._(macro_1.t `units`)} showZeroAsDash={false}/>
169
+ <InfoBars_1.default style={{ flex: 5 }} label={i18nUtils_1.i18n._(macro_1.t `Active Insulin`)} value={activeInsulin ? `${activeInsulin.toFixed(1)}` : null} units={i18nUtils_1.i18n._(macro_1.t `units`)} showZeroAsDash={false}/>
170
170
  <InfoBars_1.default label={i18nUtils_1.i18n._(macro_1.t `Blood Glucose Level`)} value={currentBGL ? `${currentBGL}` : null} units={this.props.units} showZeroAsDash={true}/>
171
171
  <react_native_1.View style={containerStyles.calcContainer}>
172
172
  <react_native_1.View style={containerStyles.calcMargin}>
@@ -79,7 +79,7 @@ interface IState {
79
79
  }
80
80
 
81
81
  export default class RecommendationScreen extends React.Component<IRecommendationProps, IState> {
82
- private readonly timer: NodeJS.Timeout;
82
+ private readonly timer: ReturnType<typeof setTimeout>;
83
83
  private readonly suggestedCarbs: number;
84
84
  private scrollView: ScrollView;
85
85
 
@@ -227,6 +227,7 @@ export default class RecommendationScreen extends React.Component<IRecommendatio
227
227
  <ScrollView style={containerStyles.container} ref={(view): ScrollView => (this.scrollView = view)}>
228
228
  <Header exitCallback={this.onExit} />
229
229
  <InfoBars
230
+ style={{ flex: 5 }}
230
231
  label={i18n._(t`Active Insulin`)}
231
232
  value={activeInsulin ? `${activeInsulin.toFixed(1)}` : null}
232
233
  units={i18n._(t`units`)}
@@ -1,9 +1,11 @@
1
1
  import React from "react";
2
+ import { StyleProp, ViewStyle } from "react-native";
2
3
  export interface IProps {
3
4
  label: string;
4
5
  value?: string;
5
6
  units: string;
6
7
  showZeroAsDash: boolean;
8
+ style?: StyleProp<ViewStyle>;
7
9
  }
8
10
  export default class InfoBars extends React.Component<IProps> {
9
11
  render(): JSX.Element;
@@ -18,8 +18,8 @@ class InfoBars extends react_1.default.Component {
18
18
  <react_native_1.View style={exports.infoStyles.labelContainer}>
19
19
  <react_native_1.Text style={exports.infoStyles.label}>{this.props.label}</react_native_1.Text>
20
20
  </react_native_1.View>
21
- <react_native_1.View style={exports.infoStyles.valueUnitContainer}>
22
- <react_native_1.View style={exports.infoStyles.valueContainer}>
21
+ <react_native_1.View style={[{ ...exports.infoStyles.valueUnitContainer }, this.props.style]}>
22
+ <react_native_1.View style={[{ ...exports.infoStyles.valueContainer }, this.props.style]}>
23
23
  <react_native_1.Text style={exports.infoStyles.value}>{displayedValue}</react_native_1.Text>
24
24
  </react_native_1.View>
25
25
  <react_native_1.View style={exports.infoStyles.unitContainer}>
@@ -67,7 +67,7 @@ exports.infoStyles = react_native_1.StyleSheet.create({
67
67
  flexDirection: `row`,
68
68
  },
69
69
  valueContainer: {
70
- flex: 1,
70
+ flex: 4,
71
71
  justifyContent: `flex-end`,
72
72
  },
73
73
  value: {
@@ -77,7 +77,7 @@ exports.infoStyles = react_native_1.StyleSheet.create({
77
77
  textAlign: `right`,
78
78
  },
79
79
  unitContainer: {
80
- flex: 1,
80
+ flex: 4,
81
81
  justifyContent: `flex-end`,
82
82
  paddingBottom: `3%`,
83
83
  },
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Dimensions, StyleSheet, Text, View } from "react-native";
2
+ import { Dimensions, StyleProp, StyleSheet, Text, View, ViewStyle } from "react-native";
3
3
  import { BORDER_COLOUR_GREY } from "../utils/Constants";
4
4
  import { headerStyles } from "./Header";
5
5
 
@@ -8,12 +8,12 @@ export interface IProps {
8
8
  value?: string;
9
9
  units: string;
10
10
  showZeroAsDash: boolean;
11
+ style?: StyleProp<ViewStyle>;
11
12
  }
12
13
 
13
14
  export default class InfoBars extends React.Component<IProps> {
14
15
  public render(): JSX.Element {
15
16
  const displayedValue = this.props.value ?? (this.props.showZeroAsDash ? `-.-` : `0`);
16
-
17
17
  return (
18
18
  <View style={infoStyles.container}>
19
19
  <View style={infoStyles.margin}>
@@ -22,8 +22,8 @@ export default class InfoBars extends React.Component<IProps> {
22
22
  <View style={infoStyles.labelContainer}>
23
23
  <Text style={infoStyles.label}>{this.props.label}</Text>
24
24
  </View>
25
- <View style={infoStyles.valueUnitContainer}>
26
- <View style={infoStyles.valueContainer}>
25
+ <View style={[{ ...infoStyles.valueUnitContainer }, this.props.style]}>
26
+ <View style={[{ ...infoStyles.valueContainer }, this.props.style]}>
27
27
  <Text style={infoStyles.value}>{displayedValue}</Text>
28
28
  </View>
29
29
  <View style={infoStyles.unitContainer}>
@@ -72,7 +72,7 @@ export const infoStyles = StyleSheet.create({
72
72
  flexDirection: `row`,
73
73
  },
74
74
  valueContainer: {
75
- flex: 1,
75
+ flex: 4,
76
76
  justifyContent: `flex-end`,
77
77
  },
78
78
  value: {
@@ -82,7 +82,7 @@ export const infoStyles = StyleSheet.create({
82
82
  textAlign: `right`,
83
83
  },
84
84
  unitContainer: {
85
- flex: 1,
85
+ flex: 4,
86
86
  justifyContent: `flex-end`,
87
87
  paddingBottom: `3%`,
88
88
  },