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,
|
mucusNFP as computeSensiplanMucusLabels,
|
||||||
cervixOpening as openingLabels,
|
cervixOpening as openingLabels,
|
||||||
cervixFirmness as firmnessLabels,
|
cervixFirmness as firmnessLabels,
|
||||||
cervixPosition as positionLabels
|
cervixPosition as positionLabels,
|
||||||
|
intensity as intensityLabels
|
||||||
} from './labels/labels'
|
} from './labels/labels'
|
||||||
import cycleDayModule from '../../lib/cycle'
|
import cycleDayModule from '../../lib/cycle'
|
||||||
import { bleedingDaysSortedByDate } from '../../db'
|
import { bleedingDaysSortedByDate } from '../../db'
|
||||||
@@ -149,7 +150,7 @@ function getLabel(symptomName, symptom) {
|
|||||||
},
|
},
|
||||||
desire: desire => {
|
desire: desire => {
|
||||||
if (typeof desire.value === 'number') {
|
if (typeof desire.value === 'number') {
|
||||||
const desireLabel = `${positionLabels[desire.value]}`
|
const desireLabel = `${intensityLabels[desire.value]}`
|
||||||
return desireLabel
|
return desireLabel
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ export const mucusNFP = ['t', 'Ø', 'f', 'S', '+S']
|
|||||||
export const cervixOpening = ['closed', 'medium', 'open']
|
export const cervixOpening = ['closed', 'medium', 'open']
|
||||||
export const cervixFirmness = ['hard', 'soft']
|
export const cervixFirmness = ['hard', 'soft']
|
||||||
export const cervixPosition = ['low', 'medium', 'high']
|
export const cervixPosition = ['low', 'medium', 'high']
|
||||||
|
export const intensity = ['low', 'medium', 'high']
|
||||||
|
|
||||||
export const fertilityStatus = {
|
export const fertilityStatus = {
|
||||||
fertile: 'fertile',
|
fertile: 'fertile',
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
import RadioForm from 'react-native-simple-radio-button'
|
import RadioForm from 'react-native-simple-radio-button'
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { saveSymptom } from '../../../db'
|
import { saveSymptom } from '../../../db'
|
||||||
import { positionOrIntensity as labels } from '../labels/labels'
|
import { intensity as labels } from '../labels/labels'
|
||||||
|
|
||||||
export default class Desire extends Component {
|
export default class Desire extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
Reference in New Issue
Block a user