From 2528c033157e524e9d4abf8c66c43f6d6d1b7217 Mon Sep 17 00:00:00 2001 From: Julia Friesel Date: Sat, 11 May 2019 16:23:26 +0200 Subject: [PATCH] Remove save button from footer --- components/cycle-day/symptoms/action-button-footer.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/components/cycle-day/symptoms/action-button-footer.js b/components/cycle-day/symptoms/action-button-footer.js index f4b0618..37526f3 100644 --- a/components/cycle-day/symptoms/action-button-footer.js +++ b/components/cycle-day/symptoms/action-button-footer.js @@ -13,9 +13,8 @@ export default class ActionButtonFooter extends Component { symptom, currentSymptomValue, date, - saveAction, navigate, - autoShowDayView = true} + } = this.props const navigateToOverView = () => navigate('CycleDay', {date}) const buttons = [ @@ -42,14 +41,6 @@ export default class ActionButtonFooter extends Component { (Object.values(currentSymptomValue).every(x => !x) && currentSymptomValue.constructor === Object) ), icon: 'delete-outline' - }, { - title: labels.save, - action: () => { - saveAction() - if (autoShowDayView) navigateToOverView() - - }, - icon: 'content-save-outline' } ] return (