diff --git a/apps/comments-ui/src/components/modals/AdminContextMenu.js b/apps/comments-ui/src/components/modals/AdminContextMenu.js index 3010c8ad3d..7bcfaa4c30 100644 --- a/apps/comments-ui/src/components/modals/AdminContextMenu.js +++ b/apps/comments-ui/src/components/modals/AdminContextMenu.js @@ -13,6 +13,11 @@ class AdminContextMenu extends React.Component { hideComment(event) { this.context.onAction('hideComment', this.props.comment); + this.close(); + } + + close() { + this.props.close(); } render() { diff --git a/apps/comments-ui/src/components/modals/NotAuthorContextMenu.js b/apps/comments-ui/src/components/modals/NotAuthorContextMenu.js index 5ed18f6b68..42dd9dd3d4 100644 --- a/apps/comments-ui/src/components/modals/NotAuthorContextMenu.js +++ b/apps/comments-ui/src/components/modals/NotAuthorContextMenu.js @@ -13,6 +13,11 @@ class NotAuthorContextMenu extends React.Component { reportComment(event) { // todo + this.close(); + } + + close() { + this.props.close(); } render() {