Add explainer to note

This commit is contained in:
Julia Friesel
2018-09-01 22:19:05 +02:00
parent cffa42ed1c
commit f6c6c9ef26
3 changed files with 14 additions and 6 deletions
+6 -4
View File
@@ -10,7 +10,7 @@ import { mucus as labels } from '../labels/labels'
import computeSensiplanValue from '../../../lib/sensiplan-mucus'
import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section';
import SymptomSection from './symptom-section'
export default class Mucus extends Component {
@@ -84,10 +84,12 @@ export default class Mucus extends Component {
symptom='mucus'
cycleDay={this.cycleDay}
saveAction={() => {
const feeling = this.state.feeling
const texture = this.state.texture
saveSymptom('mucus', this.cycleDay, {
feeling: this.state.feeling,
texture: this.state.texture,
value: computeSensiplanValue(this.state.feeling, this.state.texture),
feeling,
texture,
value: computeSensiplanValue(feeling, texture),
exclude: this.state.exclude
})
}}