diff --git a/client/coral-admin/src/components/ActionsMenu.js b/client/coral-admin/src/components/ActionsMenu.js index 25aee1fbc..6351afda7 100644 --- a/client/coral-admin/src/components/ActionsMenu.js +++ b/client/coral-admin/src/components/ActionsMenu.js @@ -32,8 +32,9 @@ class ActionsMenu extends React.Component { }; render() { + const {className = ''} = this.props; return ( -
+
- -
+
+

{t('bandialog.ban_user')}

+
+
+

{t('bandialog.are_you_sure', username)}

+ {info} +
+
+ +
); diff --git a/client/coral-admin/src/components/CommentBodyHighlighter.js b/client/coral-admin/src/components/CommentBodyHighlighter.js index e27d3ce6d..177df5338 100644 --- a/client/coral-admin/src/components/CommentBodyHighlighter.js +++ b/client/coral-admin/src/components/CommentBodyHighlighter.js @@ -15,7 +15,15 @@ function generateRegExp(phrases) { .join('[\\s"?!.]+') ).join('|'); - return new RegExp(`(^|[^\\w])(${inner})(?=[^\\w]|$)`, 'iu'); + const pattern = `(^|[^\\w])(${inner})(?=[^\\w]|$)`; + try { + return new RegExp(pattern, 'iu'); + } + catch (_err) { + + // IE does not support unicode support, so we'll create one without. + return new RegExp(pattern, 'i'); + } } // Generate a regular expression detecting `suspectWords` and `bannedWords` phrases. diff --git a/client/coral-admin/src/components/RejectButton.js b/client/coral-admin/src/components/RejectButton.js index e01102dc3..8e0873162 100644 --- a/client/coral-admin/src/components/RejectButton.js +++ b/client/coral-admin/src/components/RejectButton.js @@ -7,11 +7,11 @@ import {Icon} from 'coral-ui'; import t from 'coral-framework/services/i18n'; -const RejectButton = ({active, minimal, onClick}) => { +const RejectButton = ({active, minimal, onClick, className}) => { const text = active ? t('modqueue.rejected') : t('modqueue.reject'); return ( -
@@ -120,7 +121,7 @@ class SuspendUserDialog extends React.Component {