@hedia/recommendation-screen 2.1.49-alpha.3 → 2.1.50-alpha.0

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.
@@ -4,7 +4,6 @@ import { t } from "@lingui/macro";
4
4
  import { i18n } from "../locale/i18nUtils";
5
5
  import { Testing } from "../types/enum";
6
6
  import { colors } from "../utils/Constants";
7
- import Icon from "./Icon";
8
7
  import TextBold from "./text/TextBold";
9
8
  /**
10
9
  * Render a button for transferring the recommendation to a logbook entry.
@@ -39,14 +38,9 @@ export default class TransferToLogbook extends React.Component {
39
38
  return <View style={addToLogbookStyles.marginContainer}/>;
40
39
  }
41
40
  return (<TouchableOpacity testID={Testing.Id.TransferToLogbookTestIds.TransferButton} onPress={this.handlePress} disabled={this.state.pressed} style={addToLogbookStyles.container}>
42
- {!this.state.pressed ? (<View style={addToLogbookStyles.textContainer}>
43
- <TextBold style={addToLogbookStyles.transferText}>{i18n._(t `Transfer to logbook`)}</TextBold>
44
- </View>) : (<View style={addToLogbookStyles.textContainerActive}>
45
- <Icon style={addToLogbookStyles.icon} iconIdentifier={`Feather/check`}/>
46
- <TextBold style={addToLogbookStyles.transferTextActive}>
47
- {i18n._(t `Transferred to logbook`)}
48
- </TextBold>
49
- </View>)}
41
+ <View style={addToLogbookStyles.textContainer}>
42
+ <TextBold style={addToLogbookStyles.transferText}>{i18n._(t `Transfer to logbook`)}</TextBold>
43
+ </View>
50
44
  </TouchableOpacity>);
51
45
  }
52
46
  }
@@ -71,23 +65,4 @@ const addToLogbookStyles = StyleSheet.create({
71
65
  color: colors.teal,
72
66
  fontSize: Dimensions.get(`screen`).width / 22,
73
67
  },
74
- textContainerActive: {
75
- flexDirection: `row`,
76
- backgroundColor: colors.teal,
77
- justifyContent: `center`,
78
- borderWidth: 1,
79
- borderRadius: 100,
80
- marginHorizontal: `4%`,
81
- paddingVertical: `4%`,
82
- },
83
- icon: {
84
- paddingTop: `1.3%`,
85
- color: colors.darkBlue,
86
- fontSize: Dimensions.get(`screen`).width / 22,
87
- marginRight: `1%`,
88
- },
89
- transferTextActive: {
90
- color: colors.darkBlue,
91
- fontSize: Dimensions.get(`screen`).width / 22,
92
- },
93
68
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hedia/recommendation-screen",
3
- "version": "2.1.49-alpha.3",
3
+ "version": "2.1.50-alpha.0",
4
4
  "description": "Hedia Recommendation Screen for Bolus and Carbohydrates",
5
5
  "main": "dist/index.js",
6
6
  "files": [