Generalize title of symptom labels

This commit is contained in:
bl00dymarie
2024-02-26 17:17:27 +01:00
parent 27776f93cc
commit 72823ef95c
2 changed files with 11 additions and 13 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ const SymptomBox = ({
editedSymptom, editedSymptom,
setEditedSymptom, setEditedSymptom,
}) => { }) => {
const { t } = useTranslation(null, { keyPrefix: 'cycleDay.symptomBox' }) const { t } = useTranslation(null, { keyPrefix: 'symptoms' })
const isSymptomEdited = editedSymptom === symptom const isSymptomEdited = editedSymptom === symptom
const isSymptomDisabled = isDateInFuture(date) && symptom !== 'note' const isSymptomDisabled = isDateInFuture(date) && symptom !== 'note'
const isExcluded = symptomData !== null ? symptomData.exclude : false const isExcluded = symptomData !== null ? symptomData.exclude : false
+10 -12
View File
@@ -7,18 +7,16 @@
"chart": { "chart": {
"tutorial": "You can swipe the chart to view more dates." "tutorial": "You can swipe the chart to view more dates."
}, },
"cycleDay": { "symptoms": {
"symptomBox": { "bleeding": "bleeding",
"bleeding": "bleeding", "temperature": "temperature",
"temperature": "temperature", "mucus": "cervical mucus",
"mucus": "cervical mucus", "cervix": "cervix",
"cervix": "cervix", "note": "note",
"note": "note", "desire": "desire",
"desire": "desire", "sex": "sex",
"sex": "sex", "pain": "pain",
"pain": "pain", "mood": "mood"
"mood": "mood"
}
}, },
"labels": { "labels": {
"bleedingPrediction": { "bleedingPrediction": {