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
+19 -17
View File
@@ -1,11 +1,10 @@
import React, {Component} from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import CommentBox from '../talk-plugin-commentbox/CommentBox';
const name = 'talk-plugin-replies';
class ReplyBox extends Component {
componentDidMount() {
document.getElementById('replyText').focus();
}
@@ -24,21 +23,24 @@ class ReplyBox extends Component {
parentId,
commentPostedHandler,
maxCharCount,
charCountEnable
charCountEnable,
} = this.props;
return <div className={`${name}-textarea`} style={styles && styles.container}>
<CommentBox
maxCharCount={maxCharCount}
charCountEnable={charCountEnable}
commentPostedHandler={commentPostedHandler}
parentId={parentId}
onCancel={this.cancelReply}
notify={notify}
currentUser={currentUser}
assetId={assetId}
postComment={postComment}
isReply={true} />
</div>;
return (
<div className={`${name}-textarea`} style={styles && styles.container}>
<CommentBox
maxCharCount={maxCharCount}
charCountEnable={charCountEnable}
commentPostedHandler={commentPostedHandler}
parentId={parentId}
onCancel={this.cancelReply}
notify={notify}
currentUser={currentUser}
assetId={assetId}
postComment={postComment}
isReply={true}
/>
</div>
);
}
}
@@ -50,7 +52,7 @@ ReplyBox.propTypes = {
parentId: PropTypes.string,
notify: PropTypes.func.isRequired,
postComment: PropTypes.func.isRequired,
assetId: PropTypes.string.isRequired
assetId: PropTypes.string.isRequired,
};
export default ReplyBox;