From 4f187390a0f91c15167f4955702b93fbc1787529 Mon Sep 17 00:00:00 2001 From: Chris Deery <3932645+cdeery@users.noreply.github.com> Date: Mon, 20 Sep 2021 15:10:44 -0400 Subject: [PATCH] feat: [AA-906] Front end for Number of Days goal setting fix errors from AccountActivationAlert.jsx --- .../AccountActivationAlert.jsx | 27 +++++++++---------- src/alerts/logistration-alert/messages.js | 11 ++++++++ src/course-home/outline-tab/messages.js | 5 ++++ 3 files changed, 28 insertions(+), 15 deletions(-) create mode 100644 src/alerts/logistration-alert/messages.js 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 = (