Remove save button from footer
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user