This commit is contained in:
Belen Curcio
2017-04-12 21:04:47 -03:00
parent 2e37512851
commit 32defa66e6
3 changed files with 3 additions and 9 deletions
+1 -7
View File
@@ -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);
+1 -1
View File
@@ -6,4 +6,4 @@ export const addTag = tag => ({
export const removeTag = idx => ({
type: 'REMOVE_TAG',
idx
});
});
+1 -1
View File
@@ -22,4 +22,4 @@ export default function commentBox (state = initialState, action) {
default :
return state;
}
}
}