mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
fix(lint): Fix lint errors
This commit is contained in:
parent
d58f8567b5
commit
8e26c8574f
3 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -20,7 +20,7 @@ export default class MetadataComposerToggleButton extends React.Component {
|
|||
|
||||
static defaultProps = {
|
||||
stickyToggle: false,
|
||||
}
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue