replace hard coded label

This commit is contained in:
wunderfisch
2024-03-18 18:36:30 +01:00
parent 15a0b3d270
commit f7c6f4bfd0
+4 -1
View File
@@ -21,7 +21,10 @@ export default function SelectTabGroup({
// 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 showDisabledAlert = (label) => { const showDisabledAlert = (label) => {
if (label === 'cervix' || label === 'cervical mucus') { if (
label === labels.secondarySymptom.cervix ||
label === labels.secondarySymptom.mucus
) {
Alert.alert( Alert.alert(
labels.secondarySymptom.disabled.title, labels.secondarySymptom.disabled.title,
labels.secondarySymptom.disabled.message labels.secondarySymptom.disabled.message