Rename labels to more neutral 'secondarySymptom'
This commit is contained in:
@@ -11,7 +11,7 @@ export default function SelectTabGroup({ activeButton, buttons, onSelect }) {
|
|||||||
const oneTimeTransformIntoNumber =
|
const oneTimeTransformIntoNumber =
|
||||||
typeof activeButton === 'boolean' && Number(activeButton)
|
typeof activeButton === 'boolean' && Number(activeButton)
|
||||||
const isSecondarySymptomSwitch =
|
const isSecondarySymptomSwitch =
|
||||||
buttons[0]['label'] === labels.useCervixAsSecondarySymptom.mucus
|
buttons[0]['label'] === labels.secondarySymptom.mucus
|
||||||
return (
|
return (
|
||||||
<View style={styles.container}>
|
<View style={styles.container}>
|
||||||
{buttons.map(({ label, value }, i) => {
|
{buttons.map(({ label, value }, i) => {
|
||||||
|
|||||||
@@ -124,11 +124,11 @@ const Settings = () => {
|
|||||||
// used to be onCervixToggle
|
// used to be onCervixToggle
|
||||||
const secondarySymptomButtons = [
|
const secondarySymptomButtons = [
|
||||||
{
|
{
|
||||||
label: labels.useCervixAsSecondarySymptom.mucus,
|
label: labels.secondarySymptom.mucus,
|
||||||
value: 0,
|
value: 0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: labels.useCervixAsSecondarySymptom.cervix,
|
label: labels.secondarySymptom.cervix,
|
||||||
value: 1,
|
value: 1,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -171,15 +171,15 @@ const Settings = () => {
|
|||||||
const secSymptomDisabledPrompt = () => {
|
const secSymptomDisabledPrompt = () => {
|
||||||
if (!isMucusTrackingCategoryEnabled == isCervixTrackingCategoryEnabled) {
|
if (!isMucusTrackingCategoryEnabled == isCervixTrackingCategoryEnabled) {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
labels.useCervixAsSecondarySymptom.disabled.title,
|
labels.secondarySymptom.disabled.title,
|
||||||
labels.useCervixAsSecondarySymptom.disabled.noSecondaryEnabled
|
labels.secondarySymptom.disabled.noSecondaryEnabled
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const cervixText = shouldUseCervix
|
const cervixText = shouldUseCervix
|
||||||
? labels.useCervixAsSecondarySymptom.cervixModeOn
|
? labels.secondarySymptom.cervixModeOn
|
||||||
: labels.useCervixAsSecondarySymptom.cervixModeOff
|
: labels.secondarySymptom.cervixModeOff
|
||||||
|
|
||||||
const sliderDisabledPrompt = () => {
|
const sliderDisabledPrompt = () => {
|
||||||
if (!isTemperatureTrackingCategoryEnabled) {
|
if (!isTemperatureTrackingCategoryEnabled) {
|
||||||
@@ -271,10 +271,10 @@ const Settings = () => {
|
|||||||
|
|
||||||
{/* used to be switch for onCervixToggle */}
|
{/* used to be switch for onCervixToggle */}
|
||||||
<Pressable onPress={secSymptomDisabledPrompt}>
|
<Pressable onPress={secSymptomDisabledPrompt}>
|
||||||
<Segment title={labels.useCervixAsSecondarySymptom.title}>
|
<Segment title={labels.secondarySymptom.title}>
|
||||||
{!isTemperatureTrackingCategoryEnabled ||
|
{!isTemperatureTrackingCategoryEnabled ||
|
||||||
isSecondarySymptomDisabled ? (
|
isSecondarySymptomDisabled ? (
|
||||||
<AppText>{labels.useCervixAsSecondarySymptom.disabled.message}</AppText>
|
<AppText>{labels.secondarySymptom.disabled.message}</AppText>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<AppText>{cervixText}</AppText>
|
<AppText>{cervixText}</AppText>
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ export default {
|
|||||||
'To use the period reminder please first enable period predictions in the customization settings.',
|
'To use the period reminder please first enable period predictions in the customization settings.',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
useCervixAsSecondarySymptom: {
|
secondarySymptom: {
|
||||||
title: 'Secondary symptom',
|
title: 'Secondary symptom',
|
||||||
cervixModeOn:
|
cervixModeOn:
|
||||||
'Cervix values are being used for symptothermal fertility detection. You can switch here to use cervical mucus values for symptothermal fertility detection',
|
'Cervix values are being used for symptothermal fertility detection. You can switch here to use cervical mucus values for symptothermal fertility detection',
|
||||||
|
|||||||
Reference in New Issue
Block a user