renaming
This commit is contained in:
@@ -20,7 +20,7 @@ export default function SelectTabGroup({
|
|||||||
buttons[0]['label'] === labels.secondarySymptom.mucus
|
buttons[0]['label'] === labels.secondarySymptom.mucus
|
||||||
|
|
||||||
// Disable is only used for secondarySymptom in customization, if more come up maybe consider more tidy solution
|
// Disable is only used for secondarySymptom in customization, if more come up maybe consider more tidy solution
|
||||||
const showDisableAlert = (label) => {
|
const showDisabledAlert = (label) => {
|
||||||
if (label === 'cervix' || label === 'mucus') {
|
if (label === 'cervix' || label === 'mucus') {
|
||||||
Alert.alert(
|
Alert.alert(
|
||||||
labels.secondarySymptom.disabled.title,
|
labels.secondarySymptom.disabled.title,
|
||||||
@@ -51,7 +51,7 @@ export default function SelectTabGroup({
|
|||||||
return (
|
return (
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
onPress={() =>
|
onPress={() =>
|
||||||
!disabled ? onSelect(value) : showDisableAlert(label)
|
!disabled ? onSelect(value) : showDisabledAlert(label)
|
||||||
}
|
}
|
||||||
key={i}
|
key={i}
|
||||||
style={boxStyle}
|
style={boxStyle}
|
||||||
|
|||||||
+3
-3
@@ -75,16 +75,16 @@ export default {
|
|||||||
disabled:
|
disabled:
|
||||||
'To use fertility phases calculation please enable temperature tracking and cervical mucus or cervix tracking above.',
|
'To use fertility phases calculation please enable temperature tracking and cervical mucus or cervix tracking above.',
|
||||||
message:
|
message:
|
||||||
'If you enter menstrual bleeding, temperature and cervical mucus or cervix data according to the sympto-thermal rules, drip will calculate cycle phases with the provided data.',
|
'If you enter menstrual bleeding, temperature and cervical mucus or cervix data according to the sympto-thermal method, drip will calculate cycle phases with the provided data.',
|
||||||
on: 'If you switch this off, drip will not show fertility related information.',
|
on: 'If you switch this off, drip will not show fertility related information.',
|
||||||
off: 'If you switch this on, drip will show fertility related information.',
|
off: 'If you switch this on, drip will show fertility related information.',
|
||||||
},
|
},
|
||||||
secondarySymptom: {
|
secondarySymptom: {
|
||||||
title: 'Secondary symptom',
|
title: 'Secondary symptom',
|
||||||
cervixModeOn:
|
cervixModeOn:
|
||||||
'Cervix values are being used for fertility detection according to the sympto-thermal rules.',
|
'Cervix values are being used for fertility detection according to the sympto-thermal method.',
|
||||||
cervixModeOff:
|
cervixModeOff:
|
||||||
'Cervical mucus values are being used for fertility detection according to the sympto-thermal rules.',
|
'Cervical mucus values are being used for fertility detection according to the sympto-thermal method.',
|
||||||
disabled: {
|
disabled: {
|
||||||
title: 'Disabled',
|
title: 'Disabled',
|
||||||
message:
|
message:
|
||||||
|
|||||||
Reference in New Issue
Block a user