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} >