diff --git a/client/coral-plugin-commentbox/CommentBox.js b/client/coral-plugin-commentbox/CommentBox.js index 37bb58f67..f395b56c9 100644 --- a/client/coral-plugin-commentbox/CommentBox.js +++ b/client/coral-plugin-commentbox/CommentBox.js @@ -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 {
({commentBox}); -const mapDispatchToProps = dispatch => bindActionCreators({}, dispatch); - -export default connect(mapStateToProps, mapDispatchToProps)(CommentBox); +export default connect(mapStateToProps, null)(CommentBox); const lang = new I18n(translations); diff --git a/client/coral-plugin-commentbox/actions.js b/client/coral-plugin-commentbox/actions.js index ead900070..46bcf4b1b 100644 --- a/client/coral-plugin-commentbox/actions.js +++ b/client/coral-plugin-commentbox/actions.js @@ -6,4 +6,4 @@ export const addTag = tag => ({ export const removeTag = idx => ({ type: 'REMOVE_TAG', idx -}); \ No newline at end of file +}); diff --git a/client/coral-plugin-commentbox/reducer.js b/client/coral-plugin-commentbox/reducer.js index f956be1f1..d9065fe87 100644 --- a/client/coral-plugin-commentbox/reducer.js +++ b/client/coral-plugin-commentbox/reducer.js @@ -22,4 +22,4 @@ export default function commentBox (state = initialState, action) { default : return state; } -} \ No newline at end of file +}