mirror of
https://github.com/wassname/talk.git
synced 2026-07-18 12:40:13 +08:00
Clean up
This commit is contained in:
@@ -4,7 +4,6 @@ import translations from './translations.json';
|
||||
import {Button} from 'coral-ui';
|
||||
import {Slot} from 'coral-framework';
|
||||
import {connect} from 'react-redux';
|
||||
import {bindActionCreators} from 'redux';
|
||||
|
||||
const name = 'coral-plugin-commentbox';
|
||||
|
||||
@@ -23,8 +22,6 @@ class CommentBox extends Component {
|
||||
};
|
||||
}
|
||||
|
||||
updateComment = cb => this.setState(cb);
|
||||
|
||||
postComment = () => {
|
||||
const {
|
||||
isReply,
|
||||
@@ -159,7 +156,6 @@ class CommentBox extends Component {
|
||||
<div className={`${name}-button-container`}>
|
||||
<Slot
|
||||
fill="commentBoxDetail"
|
||||
updateComment={this.updateComment}
|
||||
registerHook={this.registerHook}
|
||||
unregisterHook={this.unregisterHook}
|
||||
inline
|
||||
@@ -203,8 +199,6 @@ CommentBox.propTypes = {
|
||||
|
||||
const mapStateToProps = ({commentBox}) => ({commentBox});
|
||||
|
||||
const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch);
|
||||
|
||||
export default connect(mapStateToProps, mapDispatchToProps)(CommentBox);
|
||||
export default connect(mapStateToProps, null)(CommentBox);
|
||||
|
||||
const lang = new I18n(translations);
|
||||
|
||||
@@ -6,4 +6,4 @@ export const addTag = tag => ({
|
||||
export const removeTag = idx => ({
|
||||
type: 'REMOVE_TAG',
|
||||
idx
|
||||
});
|
||||
});
|
||||
|
||||
@@ -22,4 +22,4 @@ export default function commentBox (state = initialState, action) {
|
||||
default :
|
||||
return state;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user