fixing issue import and empty statement
This commit is contained in:
@@ -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 ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user