Replacing excludeIf

This commit is contained in:
Belen Curcio
2017-09-18 10:12:28 -03:00
parent eb03d62e51
commit 100dd519ee
2 changed files with 9 additions and 8 deletions
@@ -11,7 +11,7 @@ import {Slot} from 'plugin-api/beta/client/components';
export default class ModerationActions extends React.Component {
render() {
const {comment, asset, data, menuVisible, toogleMenu, hideMenu} = this.props;
const {comment, root, asset, data, menuVisible, toogleMenu, hideMenu} = this.props;
return(
<ClickOutside onClickOutside={hideMenu}>
@@ -30,7 +30,7 @@ export default class ModerationActions extends React.Component {
/>
<ApproveCommentAction comment={comment} hideMenu={hideMenu} />
<RejectCommentAction comment={comment} hideMenu={hideMenu} />
<BanUserAction comment={comment} hideMenu={hideMenu} />
<BanUserAction comment={comment} root={root} hideMenu={hideMenu} />
</Menu>
)}
</div>