replaced eslint:recommended with prettier

This commit is contained in:
Wyatt Johnson
2018-01-11 20:00:34 -07:00
parent d56c19016a
commit 0abc2ca243
649 changed files with 16235 additions and 13008 deletions
@@ -1,38 +1,39 @@
import React from 'react';
import {compose} from 'react-apollo';
import {bindActionCreators} from 'redux';
import {getErrorMessages} from 'plugin-api/beta/client/utils';
import {notify} from 'plugin-api/beta/client/actions/notification';
import { compose } from 'react-apollo';
import { bindActionCreators } from 'redux';
import { getErrorMessages } from 'plugin-api/beta/client/utils';
import { notify } from 'plugin-api/beta/client/actions/notification';
import RejectCommentAction from '../components/RejectCommentAction';
import {connect, withSetCommentStatus} from 'plugin-api/beta/client/hocs';
import { connect, withSetCommentStatus } from 'plugin-api/beta/client/hocs';
class RejectCommentActionContainer extends React.Component {
rejectComment = async () => {
const {setCommentStatus, comment, hideMenu, notify} = this.props;
const { setCommentStatus, comment, hideMenu, notify } = this.props;
try {
await setCommentStatus({
commentId: comment.id,
status: 'REJECTED'
status: 'REJECTED',
});
}
catch(err) {
} catch (err) {
notify('error', getErrorMessages(err));
}
hideMenu();
}
};
render() {
return <RejectCommentAction rejectComment={this.rejectComment}/>;
return <RejectCommentAction rejectComment={this.rejectComment} />;
}
}
const mapDispatchToProps = (dispatch) =>
bindActionCreators({
notify
}, dispatch);
const mapDispatchToProps = dispatch =>
bindActionCreators(
{
notify,
},
dispatch
);
const enhance = compose(
connect(null, mapDispatchToProps),