From 01582c4e16e22100b6e0bc50731ad4d35b1a22b0 Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Tue, 9 Apr 2024 13:12:09 +0200 Subject: [PATCH] Chore: Merge exclude functionality with latest main --- components/cycle-day/symptom-edit-view.js | 38 ++++++++++------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/components/cycle-day/symptom-edit-view.js b/components/cycle-day/symptom-edit-view.js index 15d7a8d..0e188e7 100644 --- a/components/cycle-day/symptom-edit-view.js +++ b/components/cycle-day/symptom-edit-view.js @@ -117,15 +117,23 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => { style: styles.input, textAlignVertical: 'top', } - const excludeToggle = shouldShow(symptomConfig.excludeText) && ( - - - - ) + + { + /* show exclude AppSwitch for bleeding, mucus, cervix, temperature */ + } + { + /* but if fertility is off only for bleeding */ + } + const excludeToggle = shouldShow(symptomConfig.excludeText) && + (isBleeding || isFertilityTrackingEnabled) && ( + + + + ) return ( @@ -189,18 +197,6 @@ const SymptomEditView = ({ date, onClose, symptom, symptomData }) => { ) })} - {/* show exclude AppSwitch for bleeding, mucus, cervix, temperature */} - {/* but if fertility is off only for bleeding */} - {shouldShow(symptomConfig.excludeText) && - (symptom === 'bleeding' || isFertilityTrackingEnabled) && ( - - - - )} {!isBleeding && excludeToggle}