refactoring disable function of temperature slider

This commit is contained in:
wunderfisch
2024-03-07 18:58:37 +01:00
parent 3e8f15e04e
commit b65b5f3561
5 changed files with 39 additions and 82 deletions
+2 -1
View File
@@ -21,7 +21,7 @@ export default function SelectTabGroup({
// Disable is only used for secondarySymptom in customization, if more come up maybe consider more tidy solution
const showDisableAlert = (label) => {
if (label === 'cervix' || 'mucus') {
if (label === 'cervix' || label === 'mucus') {
Alert.alert(
labels.secondarySymptom.disabled.title,
labels.secondarySymptom.disabled.message
@@ -68,6 +68,7 @@ SelectTabGroup.propTypes = {
activeButton: PropTypes.number,
buttons: PropTypes.array.isRequired,
onSelect: PropTypes.func.isRequired,
disabled: PropTypes.bool,
}
const styles = StyleSheet.create({