@hedia/recommendation-screen 2.1.55-alpha.1 → 2.1.55-alpha.2
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,7 +1,8 @@
|
|
|
1
1
|
import { BolusCalculator } from "@hedia/types";
|
|
2
2
|
import { t } from "@lingui/macro";
|
|
3
3
|
import React from "react";
|
|
4
|
-
import { Alert, StyleSheet, TouchableOpacity } from "react-native";
|
|
4
|
+
import { Alert, StyleSheet, TouchableOpacity, View } from "react-native";
|
|
5
|
+
import Edit from "../assets/IconsSVG/Edit";
|
|
5
6
|
import { i18n } from "../locale/i18nUtils";
|
|
6
7
|
import { Testing } from "../types/enum";
|
|
7
8
|
import { Messages } from "../utils/AttentionMessages";
|
|
@@ -109,7 +110,10 @@ export default class RecommendedInsulin extends React.Component {
|
|
|
109
110
|
{shownInsulin}
|
|
110
111
|
</Text>
|
|
111
112
|
<Text style={style.unitsText}>{i18n._(t `Units`)}</Text>
|
|
112
|
-
<
|
|
113
|
+
<View style={style.enterManually}>
|
|
114
|
+
{Edit({ color: colors.teal, style: style.editIcon })}
|
|
115
|
+
<Text style={style.editText}>{i18n._(t `Enter Manually`)}</Text>
|
|
116
|
+
</View>
|
|
113
117
|
</TouchableOpacity>
|
|
114
118
|
|
|
115
119
|
<InvisibleNumberInput testID={InvisibleInsulinInput} decimalPlaces={1} maxLength={4} negativeAllowed={false} cleanPartialInput={false} partialInput={this.updatePartially} onEnd={this.handleUpdatedInsulin} visible={(visible) => (this.callbackInput = visible)} startValue={`${shownInsulin}`}/>
|
|
@@ -150,4 +154,14 @@ const style = StyleSheet.create({
|
|
|
150
154
|
textAlign: `center`,
|
|
151
155
|
marginBottom: 16,
|
|
152
156
|
},
|
|
157
|
+
editIcon: {
|
|
158
|
+
height: 16,
|
|
159
|
+
width: 16,
|
|
160
|
+
marginRight: 4,
|
|
161
|
+
alignSelf: `center`,
|
|
162
|
+
},
|
|
163
|
+
enterManually: {
|
|
164
|
+
flexDirection: `row`,
|
|
165
|
+
justifyContent: `center`,
|
|
166
|
+
},
|
|
153
167
|
});
|
|
@@ -56,7 +56,12 @@ const emotionStyles = StyleSheet.create({
|
|
|
56
56
|
...FONTS.Poppins.regular_Base,
|
|
57
57
|
textAlign: `center`,
|
|
58
58
|
color: colors.white,
|
|
59
|
-
marginBottom:
|
|
59
|
+
marginBottom: 8,
|
|
60
|
+
},
|
|
61
|
+
moodIconContainer: {
|
|
62
|
+
flex: 1,
|
|
63
|
+
flexDirection: `row`,
|
|
64
|
+
justifyContent: `space-between`,
|
|
65
|
+
paddingHorizontal: 10,
|
|
60
66
|
},
|
|
61
|
-
moodIconContainer: { flex: 1, flexDirection: `row`, justifyContent: `space-between` },
|
|
62
67
|
});
|