From 2e24eb2d3585ef04219eb08afcd30683d72cad6a Mon Sep 17 00:00:00 2001 From: wunderfisch Date: Mon, 26 Feb 2024 15:28:11 +0100 Subject: [PATCH] fixing issue import and empty statement --- components/common/app-switch.js | 2 +- components/settings/customization/index.js | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/components/common/app-switch.js b/components/common/app-switch.js index 78ab610..dfa8dfe 100644 --- a/components/common/app-switch.js +++ b/components/common/app-switch.js @@ -1,5 +1,5 @@ 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 AppText from './app-text' diff --git a/components/settings/customization/index.js b/components/settings/customization/index.js index fffcd7d..607a4e6 100644 --- a/components/settings/customization/index.js +++ b/components/settings/customization/index.js @@ -161,7 +161,6 @@ const Settings = () => { if (!cervix && mucus) { setUseCervixAsSecondarySymptom(0) saveUseCervixAsSecondarySymptom(0) - } else if (cervix && mucus) { } else if (cervix && !mucus) { setUseCervixAsSecondarySymptom(1) saveUseCervixAsSecondarySymptom(1) @@ -202,7 +201,6 @@ const Settings = () => { text={SYMPTOMS[1]} value={isTemperatureTrackingCategoryEnabled} /> - { mucusTrackingCategoryToggle(enabled) @@ -210,7 +208,6 @@ const Settings = () => { text={SYMPTOMS[2]} value={isMucusTrackingCategoryEnabled} /> - { cervixTrackingCategoryToggle(enabled) @@ -218,7 +215,6 @@ const Settings = () => { text={SYMPTOMS[3]} value={isCervixTrackingCategoryEnabled} /> - { - {/* used to be switch for onCervixToggle */} {!isFertilityTrackingEnabled ? (