diff --git a/components/cycle-day/symptoms/bleeding.js b/components/cycle-day/symptoms/bleeding.js
index ddb5795..6b9c39c 100644
--- a/components/cycle-day/symptoms/bleeding.js
+++ b/components/cycle-day/symptoms/bleeding.js
@@ -6,7 +6,6 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { bleeding } from '../../../i18n/en/cycle-day'
-import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
import SymptomView from './symptom-view'
@@ -68,12 +67,6 @@ export default class Bleeding extends SymptomView {
/>
-
)
}
diff --git a/components/cycle-day/symptoms/cervix.js b/components/cycle-day/symptoms/cervix.js
index 8ff4385..285d7de 100644
--- a/components/cycle-day/symptoms/cervix.js
+++ b/components/cycle-day/symptoms/cervix.js
@@ -5,9 +5,7 @@ import {
ScrollView
} from 'react-native'
import styles from '../../../styles'
-import { saveSymptom } from '../../../db'
import { cervix as labels } from '../../../i18n/en/cycle-day'
-import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
import SymptomView from './symptom-view'
@@ -99,12 +97,6 @@ export default class Cervix extends SymptomView {
/>
-
)
}
diff --git a/components/cycle-day/symptoms/desire.js b/components/cycle-day/symptoms/desire.js
index 990b4f5..9e9636b 100644
--- a/components/cycle-day/symptoms/desire.js
+++ b/components/cycle-day/symptoms/desire.js
@@ -5,7 +5,6 @@ import {
} from 'react-native'
import styles from '../../../styles'
import { intensity, desire } from '../../../i18n/en/cycle-day'
-import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
import SymptomView from './symptom-view'
@@ -22,7 +21,7 @@ export default class Desire extends SymptomView {
symptomName = 'desire'
onBackButtonPress() {
- if (!this.state.currentValue) {
+ if (typeof this.state.currentValue != 'number') {
this.deleteSymptomEntry()
return
}
@@ -49,13 +48,6 @@ export default class Desire extends SymptomView {
/>
-
)
}
diff --git a/components/cycle-day/symptoms/mood.js b/components/cycle-day/symptoms/mood.js
index 5221deb..654d2e7 100644
--- a/components/cycle-day/symptoms/mood.js
+++ b/components/cycle-day/symptoms/mood.js
@@ -5,7 +5,6 @@ import {
View
} from 'react-native'
import { mood as labels } from '../../../i18n/en/cycle-day'
-import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section'
import styles from '../../../styles'
@@ -73,13 +72,6 @@ export default class Mood extends SymptomView {
}
- !value)}
- navigate={this.props.navigate}
- />
)
}
diff --git a/components/cycle-day/symptoms/mucus.js b/components/cycle-day/symptoms/mucus.js
index 0eee93f..0c33ef8 100644
--- a/components/cycle-day/symptoms/mucus.js
+++ b/components/cycle-day/symptoms/mucus.js
@@ -7,7 +7,6 @@ import {
import styles from '../../../styles'
import { mucus as labels } from '../../../i18n/en/cycle-day'
import computeNfpValue from '../../../lib/nfp-mucus'
-import ActionButtonFooter from './action-button-footer'
import SelectTabGroup from '../select-tab-group'
import SymptomSection from './symptom-section'
import SymptomView from './symptom-view'
@@ -88,12 +87,6 @@ export default class Mucus extends SymptomView {
/>
-
)
}
diff --git a/components/cycle-day/symptoms/note.js b/components/cycle-day/symptoms/note.js
index 08fac70..bf435db 100644
--- a/components/cycle-day/symptoms/note.js
+++ b/components/cycle-day/symptoms/note.js
@@ -6,8 +6,6 @@ import {
} from 'react-native'
import styles from '../../../styles'
-import { saveSymptom } from '../../../db'
-import ActionButtonFooter from './action-button-footer'
import SymptomSection from './symptom-section'
import { noteExplainer } from '../../../i18n/en/cycle-day'
import { shared as sharedLabels } from '../../../i18n/en/labels'
@@ -54,13 +52,6 @@ export default class Note extends SymptomView {
/>
-
)
}
diff --git a/components/cycle-day/symptoms/pain.js b/components/cycle-day/symptoms/pain.js
index aa1c074..4a07ee5 100644
--- a/components/cycle-day/symptoms/pain.js
+++ b/components/cycle-day/symptoms/pain.js
@@ -4,10 +4,8 @@ import {
TextInput,
View
} from 'react-native'
-import { saveSymptom } from '../../../db'
import { pain as labels } from '../../../i18n/en/cycle-day'
import { shared as sharedLabels } from '../../../i18n/en/labels'
-import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section'
import styles from '../../../styles'
@@ -76,13 +74,6 @@ export default class Pain extends SymptomView {
}
- !value)}
- navigate={this.props.navigate}
- />
)
}
diff --git a/components/cycle-day/symptoms/sex.js b/components/cycle-day/symptoms/sex.js
index 596e3c6..8972fa3 100644
--- a/components/cycle-day/symptoms/sex.js
+++ b/components/cycle-day/symptoms/sex.js
@@ -7,7 +7,6 @@ import {
import styles from '../../../styles'
import { sex as sexLabels, contraceptives as contraceptivesLabels } from '../../../i18n/en/cycle-day'
import { shared as sharedLabels } from '../../../i18n/en/labels'
-import ActionButtonFooter from './action-button-footer'
import SelectBoxGroup from '../select-box-group'
import SymptomSection from './symptom-section'
import SymptomView from './symptom-view'
@@ -87,13 +86,6 @@ export default class Sex extends SymptomView {
/>
}
- !value)}
- navigate={this.props.navigate}
- />
)
}
diff --git a/components/cycle-day/symptoms/temperature.js b/components/cycle-day/symptoms/temperature.js
index 476d90c..ce06a3c 100644
--- a/components/cycle-day/symptoms/temperature.js
+++ b/components/cycle-day/symptoms/temperature.js
@@ -15,7 +15,6 @@ import { LocalTime, ChronoUnit } from 'js-joda'
import { temperature as labels } from '../../../i18n/en/cycle-day'
import { scaleObservable } from '../../../local-storage'
import { shared as sharedLabels } from '../../../i18n/en/labels'
-import ActionButtonFooter from './action-button-footer'
import config from '../../../config'
import AppTextInput from '../../app-text-input'
import AppText from '../../app-text'
@@ -190,28 +189,7 @@ export default class Temp extends SymptomView {
/>
-
)
}
}
-
-function isInvalidTime(timeString) {
- try {
- LocalTime.parse(timeString)
- } catch (err) {
- return true
- }
- return false
-}
\ No newline at end of file