fixing issue import and empty statement

This commit is contained in:
wunderfisch
2024-02-26 15:28:11 +01:00
parent eac0b81b70
commit 2e24eb2d35
2 changed files with 1 additions and 6 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import React from 'react' import React from 'react'
import { StyleSheet, Switch, View } from 'react-native' import { Platform, StyleSheet, Switch, View } from 'react-native'
import PropTypes from 'prop-types' import PropTypes from 'prop-types'
import AppText from './app-text' import AppText from './app-text'
@@ -161,7 +161,6 @@ const Settings = () => {
if (!cervix && mucus) { if (!cervix && mucus) {
setUseCervixAsSecondarySymptom(0) setUseCervixAsSecondarySymptom(0)
saveUseCervixAsSecondarySymptom(0) saveUseCervixAsSecondarySymptom(0)
} else if (cervix && mucus) {
} else if (cervix && !mucus) { } else if (cervix && !mucus) {
setUseCervixAsSecondarySymptom(1) setUseCervixAsSecondarySymptom(1)
saveUseCervixAsSecondarySymptom(1) saveUseCervixAsSecondarySymptom(1)
@@ -202,7 +201,6 @@ const Settings = () => {
text={SYMPTOMS[1]} text={SYMPTOMS[1]}
value={isTemperatureTrackingCategoryEnabled} value={isTemperatureTrackingCategoryEnabled}
/> />
<AppSwitch <AppSwitch
onToggle={(enabled) => { onToggle={(enabled) => {
mucusTrackingCategoryToggle(enabled) mucusTrackingCategoryToggle(enabled)
@@ -210,7 +208,6 @@ const Settings = () => {
text={SYMPTOMS[2]} text={SYMPTOMS[2]}
value={isMucusTrackingCategoryEnabled} value={isMucusTrackingCategoryEnabled}
/> />
<AppSwitch <AppSwitch
onToggle={(enabled) => { onToggle={(enabled) => {
cervixTrackingCategoryToggle(enabled) cervixTrackingCategoryToggle(enabled)
@@ -218,7 +215,6 @@ const Settings = () => {
text={SYMPTOMS[3]} text={SYMPTOMS[3]}
value={isCervixTrackingCategoryEnabled} value={isCervixTrackingCategoryEnabled}
/> />
<AppSwitch <AppSwitch
onToggle={sexTrackingCategoryToggle} onToggle={sexTrackingCategoryToggle}
text={SYMPTOMS[4]} text={SYMPTOMS[4]}
@@ -278,7 +274,6 @@ const Settings = () => {
</Segment> </Segment>
</Pressable> </Pressable>
{/* used to be switch for onCervixToggle */}
<Pressable onPress={secondarySymptomDisabledPrompt}> <Pressable onPress={secondarySymptomDisabledPrompt}>
<Segment title={labels.secondarySymptom.title}> <Segment title={labels.secondarySymptom.title}>
{!isFertilityTrackingEnabled ? ( {!isFertilityTrackingEnabled ? (