Refactor getStatusAsString
This commit is contained in:
@@ -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 }>
|
||||
|
||||
@@ -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
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user