Adds new set of labels for chosing intensity of a tracking category
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user