From 6011bd92085f5480ffd79a17a86facec2908212c Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Mon, 13 May 2019 08:12:46 +0200 Subject: [PATCH] Fix linter problems --- components/cycle-day/symptoms/cervix.js | 3 +- components/cycle-day/symptoms/desire.js | 1 - components/cycle-day/symptoms/mood.js | 4 +- components/cycle-day/symptoms/mucus.js | 4 +- components/cycle-day/symptoms/note.js | 1 - components/cycle-day/symptoms/symptom-view.js | 4 + components/cycle-day/symptoms/temperature.js | 124 +++++++++--------- components/header/symptom-view.js | 2 +- 8 files changed, 72 insertions(+), 71 deletions(-) diff --git a/components/cycle-day/symptoms/cervix.js b/components/cycle-day/symptoms/cervix.js index 3feac91..f58ebf2 100644 --- a/components/cycle-day/symptoms/cervix.js +++ b/components/cycle-day/symptoms/cervix.js @@ -49,7 +49,8 @@ export default class Cervix extends SymptomView { { label: labels.position.categories[1], value: 1 }, { label: labels.position.categories[2], value: 2 } ] - const mandatoryNotCompleted = typeof this.state.opening != 'number' || typeof this.state.firmness != 'number' + // TODO saving this info for notice when leaving incomplete data + // const mandatoryNotCompleted = typeof this.state.opening != 'number' || typeof this.state.firmness != 'number' return ( { + this.deleteSymptomEntry() + this.globalBackhandler() + }} /> {this.renderContent()} diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js index 4e54eb8..c2e2575 100644 --- a/components/cycle-day/symptoms/temperature.js +++ b/components/cycle-day/symptoms/temperature.js @@ -122,72 +122,72 @@ export default class Temp extends SymptomView { inputStyle.push(styles.temperatureTextInputSuggestion) } return ( - - - - - °C - - - - - - { - this.setState({ - time: padWithZeros(jsDate), - isTimePickerVisible: false - }) - }} - onCancel={() => this.setState({ isTimePickerVisible: false })} - /> - - - + + + - - - { - this.setState({ exclude: val }) + °C + + + + + + { + this.setState({ + time: padWithZeros(jsDate), + isTimePickerVisible: false + }) }} - value={this.state.exclude} + onCancel={() => this.setState({ isTimePickerVisible: false })} /> - - + + + + + + + { + this.setState({ exclude: val }) + }} + value={this.state.exclude} + /> + + ) } } diff --git a/components/header/symptom-view.js b/components/header/symptom-view.js index 6f01113..6b6e384 100644 --- a/components/header/symptom-view.js +++ b/components/header/symptom-view.js @@ -31,7 +31,7 @@ export default function SymptomViewHeader(props) { props.goToSymptomInfo()} + onPress={props.deleteEntry} style={styles.infoButton} >