Adds new set of labels for chosing intensity of a tracking category

This commit is contained in:
emelko
2018-08-03 13:28:10 +02:00
parent e42d25a087
commit 8e56fc0b23
3 changed files with 6 additions and 4 deletions
+3 -2
View File
@@ -12,7 +12,8 @@ import {
mucusNFP as computeSensiplanMucusLabels,
cervixOpening as openingLabels,
cervixFirmness as firmnessLabels,
cervixPosition as positionLabels
cervixPosition as positionLabels,
intensity as intensityLabels
} from './labels/labels'
import cycleDayModule from '../../lib/cycle'
import { bleedingDaysSortedByDate } from '../../db'
@@ -149,7 +150,7 @@ function getLabel(symptomName, symptom) {
},
desire: desire => {
if (typeof desire.value === 'number') {
const desireLabel = `${positionLabels[desire.value]}`
const desireLabel = `${intensityLabels[desire.value]}`
return desireLabel
}
}
+2 -1
View File
@@ -5,10 +5,11 @@ export const mucusNFP = ['t', 'Ø', 'f', 'S', '+S']
export const cervixOpening = ['closed', 'medium', 'open']
export const cervixFirmness = ['hard', 'soft']
export const cervixPosition = ['low', 'medium', 'high']
export const intensity = ['low', 'medium', 'high']
export const fertilityStatus = {
fertile: 'fertile',
infertile: 'infertile',
fertileUntilEvening: 'Fertile phase ends in the evening',
unknown: 'We cannot show any cycle information because no menses has been entered'
}
}
+1 -1
View File
@@ -6,7 +6,7 @@ import {
import RadioForm from 'react-native-simple-radio-button'
import styles from '../../../styles'
import { saveSymptom } from '../../../db'
import { positionOrIntensity as labels } from '../labels/labels'
import { intensity as labels } from '../labels/labels'
export default class Desire extends Component {
constructor(props) {