Remove save button from footer

This commit is contained in:
Julia Friesel
2019-05-11 16:23:26 +02:00
parent d322e557a3
commit 2528c03315
@@ -13,9 +13,8 @@ export default class ActionButtonFooter extends Component {
symptom, symptom,
currentSymptomValue, currentSymptomValue,
date, date,
saveAction,
navigate, navigate,
autoShowDayView = true} }
= this.props = this.props
const navigateToOverView = () => navigate('CycleDay', {date}) const navigateToOverView = () => navigate('CycleDay', {date})
const buttons = [ const buttons = [
@@ -42,14 +41,6 @@ export default class ActionButtonFooter extends Component {
(Object.values(currentSymptomValue).every(x => !x) && currentSymptomValue.constructor === Object) (Object.values(currentSymptomValue).every(x => !x) && currentSymptomValue.constructor === Object)
), ),
icon: 'delete-outline' icon: 'delete-outline'
}, {
title: labels.save,
action: () => {
saveAction()
if (autoShowDayView) navigateToOverView()
},
icon: 'content-save-outline'
} }
] ]
return ( return (