Clean up
This commit is contained in:
@@ -45,8 +45,7 @@ export default class ActionButtonFooter extends Component {
|
|||||||
title: labels.save,
|
title: labels.save,
|
||||||
action: () => {
|
action: () => {
|
||||||
if(saveDisabled) {
|
if(saveDisabled) {
|
||||||
ToastAndroid.show(labels.disabledInfo, ToastAndroid.LONG);
|
ToastAndroid.show(labels.disabledInfo, ToastAndroid.LONG)
|
||||||
console.log()
|
|
||||||
} else {
|
} else {
|
||||||
saveAction()
|
saveAction()
|
||||||
if (autoShowDayView) navigateToOverView()
|
if (autoShowDayView) navigateToOverView()
|
||||||
@@ -62,7 +61,7 @@ export default class ActionButtonFooter extends Component {
|
|||||||
{buttons.map(({ title, action, disabledCondition, icon }, i) => {
|
{buttons.map(({ title, action, disabledCondition, icon }, i) => {
|
||||||
const textStyle = [styles.menuText]
|
const textStyle = [styles.menuText]
|
||||||
if (disabledCondition) {
|
if (disabledCondition) {
|
||||||
textStyle.push(styles.menuTextInActive);
|
textStyle.push(styles.menuTextInActive)
|
||||||
}
|
}
|
||||||
const iconStyle = disabledCondition ?
|
const iconStyle = disabledCondition ?
|
||||||
Object.assign(
|
Object.assign(
|
||||||
|
|||||||
Reference in New Issue
Block a user