diff --git a/package-lock.json b/package-lock.json
index b52de281..e9e6558b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3802,6 +3802,19 @@
"react-transition-group": "^4.0.0",
"tabbable": "^4.0.0",
"uncontrollable": "7.2.1"
+ },
+ "dependencies": {
+ "react-responsive": {
+ "version": "8.2.0",
+ "resolved": "https://registry.npmjs.org/react-responsive/-/react-responsive-8.2.0.tgz",
+ "integrity": "sha512-iagCqVrw4QSjhxKp3I/YK6+ODkWY6G+YPElvdYKiUUbywwh9Ds0M7r26Fj2/7dWFFbOpcGnJE6uE7aMck8j5Qg==",
+ "requires": {
+ "hyphenate-style-name": "^1.0.0",
+ "matchmediaquery": "^0.3.0",
+ "prop-types": "^15.6.1",
+ "shallow-equal": "^1.1.0"
+ }
+ }
}
},
"@formatjs/ecma402-abstract": {
diff --git a/package.json b/package.json
index 83392d24..b031836e 100644
--- a/package.json
+++ b/package.json
@@ -54,6 +54,7 @@
"react-dom": "17.0.2",
"react-helmet": "6.1.0",
"react-redux": "7.2.5",
+ "react-responsive": "8.2.0",
"react-router": "5.2.1",
"react-router-dom": "5.3.0",
"react-share": "4.4.0",
diff --git a/src/alerts/logistration-alert/AccountActivationAlert.jsx b/src/alerts/logistration-alert/AccountActivationAlert.jsx
index bbb9f565..dcdd06d7 100644
--- a/src/alerts/logistration-alert/AccountActivationAlert.jsx
+++ b/src/alerts/logistration-alert/AccountActivationAlert.jsx
@@ -9,10 +9,13 @@ import {
Icon,
} from '@edx/paragon';
import { Check, ArrowForward } from '@edx/paragon/icons';
-import { FormattedMessage, injectIntl } from '@edx/frontend-platform/i18n';
+import { FormattedMessage, injectIntl, intlShape } from '@edx/frontend-platform/i18n';
import { sendActivationEmail } from '../../courseware/data';
+import messages from './messages';
-function AccountActivationAlert() {
+function AccountActivationAlert({
+ intl,
+}) {
const [showModal, setShowModal] = useState(false);
const [showSpinner, setShowSpinner] = useState(false);
const [showCheck, setShowCheck] = useState(false);
@@ -29,22 +32,12 @@ function AccountActivationAlert() {
if (showAccountActivationAlert !== undefined) {
Cookies.remove('show-account-activation-popup', { path: '/', domain: process.env.SESSION_COOKIE_DOMAIN });
// extra check to make sure cookie was removed before updating the state. Updating the state without removal
- // of cookie would make it infinit rendering
+ // of cookie would make it infinite rendering
if (Cookies.get('show-account-activation-popup') === undefined) {
setShowModal(true);
}
}
- const title = (
-
-
-
- );
-
const button = (