Remove action button footer from symptom views

This commit is contained in:
Julia Friesel
2019-05-12 13:18:03 +02:00
parent ecf3ebf16d
commit bc13f5c1e6
9 changed files with 1 additions and 87 deletions
+1 -9
View File
@@ -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 {
/>
</SymptomSection>
</ScrollView>
<ActionButtonFooter
symptom='desire'
date={this.props.date}
currentSymptomValue={this.desire}
saveDisabled={typeof this.state.currentValue != 'number'}
navigate={this.props.navigate}
/>
</View>
)
}