fix(lint): Fix lint errors

This commit is contained in:
Juan Tejada 2016-02-24 17:53:19 -08:00
parent d58f8567b5
commit 8e26c8574f
3 changed files with 4 additions and 5 deletions

View file

@ -66,14 +66,14 @@ class SendLaterPopover extends Component {
} else {
NylasEnv.showErrorDialog(`Sorry, we can't parse ${value} as a valid date.`);
}
}
};
onSelectDate = (date)=> {
const formatted = DateUtils.format(date.utc());
SendLaterActions.sendLater(this.props.draftClientId, formatted);
this.setState({scheduledDate: 'saving', inputDate: null});
this.refs.popover.close();
}
};
onCancelSendLater = ()=> {
SendLaterActions.cancelSendLater(this.props.draftClientId);

View file

@ -20,7 +20,7 @@ export default class MetadataComposerToggleButton extends React.Component {
static defaultProps = {
stickyToggle: false,
}
};
constructor(props) {
super(props);

View file

@ -1,5 +1,4 @@
import React, {Component, PropTypes} from 'react';
import DOMUtils from '../dom-utils';
import _ from 'underscore';
import {exec} from 'child_process';
@ -254,7 +253,7 @@ export default class SwipeContainer extends Component {
this.props.onSwipeRight(this._onSwipeActionCompleted);
} else if ((targetX < 0) && this.props.onSwipeLeft) {
this.props.onSwipeLeft(this._onSwipeActionCompleted);
} else if ((targetX == 0) && this.props.onSwipeCenter) {
} else if ((targetX === 0) && this.props.onSwipeCenter) {
this.props.onSwipeCenter();
}
}