@hedia/recommendation-screen 2.2.0-alpha.20 → 2.2.0-alpha.22
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.
|
@@ -13,11 +13,18 @@ export interface IResult {
|
|
|
13
13
|
/** Represents forecast data */
|
|
14
14
|
export interface IForecast {
|
|
15
15
|
/** The forecasted glucose value to display. */
|
|
16
|
-
forecastedGlucose: number
|
|
16
|
+
forecastedGlucose: number;
|
|
17
17
|
/** Forecasted time value to display. */
|
|
18
|
-
forecastTime: string
|
|
19
|
-
/** Latest CGM
|
|
20
|
-
latestCGMReading:
|
|
18
|
+
forecastTime: string;
|
|
19
|
+
/** Latest CGM reading. */
|
|
20
|
+
latestCGMReading: ICGMReading;
|
|
21
|
+
}
|
|
22
|
+
/** Represents CGM data */
|
|
23
|
+
export interface ICGMReading {
|
|
24
|
+
/** Latest CGM reading time value. */
|
|
25
|
+
CGMTime: string;
|
|
26
|
+
/** Latest CGM reading value to display. */
|
|
27
|
+
glucoseMmoll: number;
|
|
21
28
|
}
|
|
22
29
|
export interface IRecommendationProps {
|
|
23
30
|
/** The blood glucose measurement unit that the user prefers. */
|
|
@@ -52,7 +52,7 @@ const ForecastInfoBar = (props) => {
|
|
|
52
52
|
|
|
53
53
|
<View style={row}>
|
|
54
54
|
<TextRegular style={infoStyles.currentCGM}>
|
|
55
|
-
{i18n._(t `Current glucose: ${forecast.latestCGMReading} ${displayUnit(unit)}`)}
|
|
55
|
+
{i18n._(t `Current glucose: ${forecast.latestCGMReading.glucoseMmoll} ${displayUnit(unit)}`)}
|
|
56
56
|
</TextRegular>
|
|
57
57
|
</View>
|
|
58
58
|
</View>
|