From 29c3b9b10885cea154d4771b0ec74130e367a9b7 Mon Sep 17 00:00:00 2001 From: bl00dymarie Date: Fri, 23 Feb 2024 13:12:27 +0100 Subject: [PATCH] Disable fertility tracking switch depending on temp, mucus or cervix --- components/settings/customization/index.js | 27 ++++++++++++++++------ 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/components/settings/customization/index.js b/components/settings/customization/index.js index bd20433..6fd93df 100644 --- a/components/settings/customization/index.js +++ b/components/settings/customization/index.js @@ -246,13 +246,26 @@ const Settings = () => { value={isNoteTrackingCategoryEnabled} /> - - - + + + + {isTemperatureTrackingCategoryEnabled && + isMucusTrackingCategoryEnabled || + isCervixTrackingCategoryEnabled ? + ( + <> + + + ) : + ( + {labels.disabled.message} + )} + +