Refactor getStatusAsString

This commit is contained in:
Julia Friesel
2018-07-18 14:14:43 +02:00
parent 42a96da69d
commit ebf18dac22
3 changed files with 47 additions and 19 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import {
Text
} from 'react-native'
import cycleModule from '../../lib/cycle'
import getFertilityStatus from '../../lib/sympto-adapter'
import { getFertilityStatusStringForDay } from '../../lib/sympto-adapter'
import DayView from './cycle-day-overview'
import BleedingEditView from './symptoms/bleeding'
import TemperatureEditView from './symptoms/temperature'
@@ -33,7 +33,7 @@ export default class Day extends Component {
render() {
const cycleDayNumber = getCycleDayNumber(this.cycleDay.date)
const fertilityStatus = getFertilityStatus(this.cycleDay.date)
const fertilityStatus = getFertilityStatusStringForDay(this.cycleDay.date)
return (
<View>
<View style={ styles.cycleDayDateView }>
+1 -1
View File
@@ -94,7 +94,7 @@ export default class Mucus extends Component {
saveSymptom('mucus', this.cycleDay, {
feeling: this.state.currentFeelingValue,
texture: this.state.currentTextureValue,
computedNfp: computeSensiplanValue(this.state.currentFeelingValue, this.state.currentTextureValue),
value: computeSensiplanValue(this.state.currentFeelingValue, this.state.currentTextureValue),
exclude: this.state.exclude
})
},