diff --git a/components/cycle-day/select-tab-group.js b/components/cycle-day/select-tab-group.js index 91e87e9..8c98f78 100644 --- a/components/cycle-day/select-tab-group.js +++ b/components/cycle-day/select-tab-group.js @@ -11,7 +11,7 @@ export default function SelectTabGroup({ activeButton, buttons, onSelect }) { const oneTimeTransformIntoNumber = typeof activeButton === 'boolean' && Number(activeButton) const isSecondarySymptomSwitch = - buttons[0]['label'] === labels.useCervixAsSecondarySymptom.mucus + buttons[0]['label'] === labels.secondarySymptom.mucus return ( {buttons.map(({ label, value }, i) => { diff --git a/components/settings/customization/index.js b/components/settings/customization/index.js index 59e5151..1d9445c 100644 --- a/components/settings/customization/index.js +++ b/components/settings/customization/index.js @@ -124,11 +124,11 @@ const Settings = () => { // used to be onCervixToggle const secondarySymptomButtons = [ { - label: labels.useCervixAsSecondarySymptom.mucus, + label: labels.secondarySymptom.mucus, value: 0, }, { - label: labels.useCervixAsSecondarySymptom.cervix, + label: labels.secondarySymptom.cervix, value: 1, }, ] @@ -171,15 +171,15 @@ const Settings = () => { const secSymptomDisabledPrompt = () => { if (!isMucusTrackingCategoryEnabled == isCervixTrackingCategoryEnabled) { Alert.alert( - labels.useCervixAsSecondarySymptom.disabled.title, - labels.useCervixAsSecondarySymptom.disabled.noSecondaryEnabled + labels.secondarySymptom.disabled.title, + labels.secondarySymptom.disabled.noSecondaryEnabled ) } } const cervixText = shouldUseCervix - ? labels.useCervixAsSecondarySymptom.cervixModeOn - : labels.useCervixAsSecondarySymptom.cervixModeOff + ? labels.secondarySymptom.cervixModeOn + : labels.secondarySymptom.cervixModeOff const sliderDisabledPrompt = () => { if (!isTemperatureTrackingCategoryEnabled) { @@ -271,10 +271,10 @@ const Settings = () => { {/* used to be switch for onCervixToggle */} - + {!isTemperatureTrackingCategoryEnabled || isSecondarySymptomDisabled ? ( - {labels.useCervixAsSecondarySymptom.disabled.message} + {labels.secondarySymptom.disabled.message} ) : ( <> {cervixText} diff --git a/i18n/en/settings.js b/i18n/en/settings.js index 918ce5a..bf26203 100644 --- a/i18n/en/settings.js +++ b/i18n/en/settings.js @@ -66,7 +66,7 @@ export default { 'To use the period reminder please first enable period predictions in the customization settings.', }, }, - useCervixAsSecondarySymptom: { + secondarySymptom: { title: 'Secondary symptom', cervixModeOn: 'Cervix values are being used for symptothermal fertility detection. You can switch here to use cervical mucus values for symptothermal fertility detection',