Skip to content
Snippets Groups Projects
Commit 7864ebfc authored by emelko's avatar emelko
Browse files

Adds subcategories of cevix and mucus as labels

parent 442bcc5c
No related branches found
No related tags found
No related merge requests found
...@@ -70,7 +70,7 @@ export default class CycleDayOverView extends Component { ...@@ -70,7 +70,7 @@ export default class CycleDayOverView extends Component {
mucus: mucus => { mucus: mucus => {
const filledCategories = ['feeling', 'texture'].filter(c => isNumber(mucus[c])) const filledCategories = ['feeling', 'texture'].filter(c => isNumber(mucus[c]))
let label = filledCategories.map(category => { let label = filledCategories.map(category => {
return category + ': ' + labels.mucus[category].categories[mucus[category]] return labels.mucus.subcategories[category] + ': ' + labels.mucus[category].categories[mucus[category]]
}).join(', ') }).join(', ')
if (isNumber(mucus.value)) label += `\n => ${labels.mucusNFP[mucus.value]}` if (isNumber(mucus.value)) label += `\n => ${labels.mucusNFP[mucus.value]}`
...@@ -81,7 +81,7 @@ export default class CycleDayOverView extends Component { ...@@ -81,7 +81,7 @@ export default class CycleDayOverView extends Component {
cervix: cervix => { cervix: cervix => {
const filledCategories = ['opening', 'firmness', 'position'].filter(c => isNumber(cervix[c])) const filledCategories = ['opening', 'firmness', 'position'].filter(c => isNumber(cervix[c]))
let label = filledCategories.map(category => { let label = filledCategories.map(category => {
return category + ': ' + labels.cervix[category].categories[cervix[category]] return labels.cervix.subcategories[category] + ': ' + labels.cervix[category].categories[cervix[category]]
}).join(', ') }).join(', ')
if (cervix.exclude) label = `(${label})` if (cervix.exclude) label = `(${label})`
......
...@@ -14,6 +14,11 @@ export const bleeding = { ...@@ -14,6 +14,11 @@ export const bleeding = {
} }
export const cervix = { export const cervix = {
subcategories: {
opening: 'opening',
firmness: 'firmness',
position: 'position'
},
opening: { opening: {
categories: ['closed', 'medium', 'open'], categories: ['closed', 'medium', 'open'],
explainer: 'Is your cervix open or closed?' explainer: 'Is your cervix open or closed?'
...@@ -30,6 +35,10 @@ export const cervix = { ...@@ -30,6 +35,10 @@ export const cervix = {
} }
export const mucus = { export const mucus = {
subcategories: {
feeling: 'feeling',
texture: 'texture'
},
feeling: { feeling: {
categories: ['dry', 'nothing', 'wet', 'slippery'], categories: ['dry', 'nothing', 'wet', 'slippery'],
explainer: 'What does your vaginal entrance feel like?' explainer: 'What does your vaginal entrance feel like?'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment