@hedia/recommendation-screen 2.1.34-alpha.5 → 2.1.34-alpha.7
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.
package/package.json
CHANGED
|
@@ -199,7 +199,7 @@ export default class RecommendationScreen extends React.Component {
|
|
|
199
199
|
this.handleNoRecentInsulin = () => {
|
|
200
200
|
this.setState({ isRecommendationDisplayed: true }, () => {
|
|
201
201
|
setImmediate(() => {
|
|
202
|
-
this.scrollViewRef?.scrollToEnd({ animated:
|
|
202
|
+
this.scrollViewRef?.scrollToEnd({ animated: false });
|
|
203
203
|
});
|
|
204
204
|
});
|
|
205
205
|
};
|
|
@@ -460,7 +460,7 @@ export default class RecommendationScreen extends React.Component {
|
|
|
460
460
|
</View>
|
|
461
461
|
{this.props.calculatorParams.activity && this.props.activityDisplayProps ? (<Activity activity={this.props.calculatorParams.activity} activityType={this.props.activityDisplayProps.activityType} activityTitle={this.props.activityDisplayProps.activityTitle} activityReduction={this.state.activityReduction}/>) : null}
|
|
462
462
|
<Remeasure onSliderChange={this.updateRemeasureTime} remeasureTime={this.state.remeasureTime}/>
|
|
463
|
-
{
|
|
463
|
+
{isRecommendationDisplayed ? (<RecommendedInsulin injectionMethod={this.props.injectionMethod} insulinRecommendation={insulinRecommendation} enteredInsulin={enteredInsulin} activityReduction={activityReduction} updateRecommendedInsulin={this.updateInsulinRecommendation}/>) : (<RecentInsulin onRecentInsulinYes={this.props.onRecentInsulinYes} onRecentInsulinNo={this.handleNoRecentInsulin}/>)}
|
|
464
464
|
<Emotion moodSelected={this.handleMoodSelected} currentMood={this.state.selectedMood}/>
|
|
465
465
|
<TransferToLogbook visible={isRecommendationDisplayed} transfer={this.handleTransfer}/>
|
|
466
466
|
<RecommendationModal isVisible={recommendationModal} suggestedCarbohydrates={carbRecommendationProp} attentionMessage={this.getBGLevelAttentionMessage()} limitationMessage={this.getLimitationAttentionMessage()} onClickOkButton={this.hideAttentionModal} onAcceptCarbohydrates={this.acceptCarbRecommendation} onDeclineCarbohydrates={this.declineCarbRecommendation}/>
|