Pass config also to withTags

This commit is contained in:
Chi Vinh Le
2017-08-08 19:57:23 +07:00
parent d1fc5668fb
commit c4a91d225e
+3 -2
View File
@@ -68,16 +68,17 @@ export default (tag) => (WrappedComponent) => {
}
render() {
const {comment} = this.props;
const {comment, user, config} = this.props;
const alreadyTagged = isTagged(comment.tags, TAG);
return <WrappedComponent
user={this.props.user}
user={user}
comment={comment}
alreadyTagged={alreadyTagged}
postTag={this.postTag}
deleteTag={this.deleteTag}
config={config}
/>;
}
}