Disable fertility tracking switch depending on temp, mucus or cervix
This commit is contained in:
@@ -246,13 +246,26 @@ const Settings = () => {
|
|||||||
value={isNoteTrackingCategoryEnabled}
|
value={isNoteTrackingCategoryEnabled}
|
||||||
/>
|
/>
|
||||||
</Segment>
|
</Segment>
|
||||||
<Segment title={labels.fertilityTracking.title}>
|
<Pressable onPress={sliderDisabledPrompt}>
|
||||||
<AppSwitch
|
|
||||||
onToggle={fertilityTrackingToggle}
|
<Segment title={labels.fertilityTracking.title}>
|
||||||
text={fertilityTrackingText}
|
{isTemperatureTrackingCategoryEnabled &&
|
||||||
value={isFertilityTrackingEnabled}
|
isMucusTrackingCategoryEnabled ||
|
||||||
/>
|
isCervixTrackingCategoryEnabled ?
|
||||||
</Segment>
|
(
|
||||||
|
<>
|
||||||
|
<AppSwitch
|
||||||
|
onToggle={fertilityTrackingToggle}
|
||||||
|
text={fertilityTrackingText}
|
||||||
|
value={isFertilityTrackingEnabled}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
) :
|
||||||
|
(
|
||||||
|
<AppText>{labels.disabled.message}</AppText>
|
||||||
|
)}
|
||||||
|
</Segment>
|
||||||
|
</Pressable>
|
||||||
|
|
||||||
<Pressable onPress={sliderDisabledPrompt}>
|
<Pressable onPress={sliderDisabledPrompt}>
|
||||||
<Segment title={labels.tempScale.segmentTitle}>
|
<Segment title={labels.tempScale.segmentTitle}>
|
||||||
|
|||||||
Reference in New Issue
Block a user