diff --git a/internal_packages/send-later/lib/send-later-popover.jsx b/internal_packages/send-later/lib/send-later-popover.jsx index 23081c43e..7eb7ca2e6 100644 --- a/internal_packages/send-later/lib/send-later-popover.jsx +++ b/internal_packages/send-later/lib/send-later-popover.jsx @@ -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); diff --git a/src/components/metadata-composer-toggle-button.jsx b/src/components/metadata-composer-toggle-button.jsx index f763ac59b..22e1cf295 100644 --- a/src/components/metadata-composer-toggle-button.jsx +++ b/src/components/metadata-composer-toggle-button.jsx @@ -20,7 +20,7 @@ export default class MetadataComposerToggleButton extends React.Component { static defaultProps = { stickyToggle: false, - } + }; constructor(props) { super(props); diff --git a/src/components/swipe-container.jsx b/src/components/swipe-container.jsx index b6357117e..d61824225 100644 --- a/src/components/swipe-container.jsx +++ b/src/components/swipe-container.jsx @@ -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(); } }