diff --git a/src/login/AccountActivationMessage.jsx b/src/login/AccountActivationMessage.jsx index 564bc6692..2315a293d 100644 --- a/src/login/AccountActivationMessage.jsx +++ b/src/login/AccountActivationMessage.jsx @@ -2,7 +2,7 @@ import React from 'react'; import { getConfig } from '@edx/frontend-platform'; import { FormattedMessage, useIntl } from '@edx/frontend-platform/i18n'; -import { Alert } from '@openedx/paragon'; +import { Alert, Hyperlink } from '@openedx/paragon'; import { CheckCircle, Error } from '@openedx/paragon/icons'; import PropTypes from 'prop-types'; @@ -36,19 +36,17 @@ const AccountActivationMessage = ({ messageType }) => { break; } case ACCOUNT_ACTIVATION_MESSAGE.ERROR: { - const supportLink = ( - - {formatMessage(messages['account.activation.support.link'])} - + const supportEmail = ( + {getConfig().INFO_EMAIL} ); heading = formatMessage(messages[`account.${activationOrConfirmation}.error.message.title`]); activationMessage = ( ); break; diff --git a/src/login/messages.jsx b/src/login/messages.jsx index 2b6317ade..a84858c21 100644 --- a/src/login/messages.jsx +++ b/src/login/messages.jsx @@ -95,11 +95,6 @@ const messages = defineMessages({ defaultMessage: 'Your account could not be activated', description: 'Account Activation error message title', }, - 'account.activation.support.link': { - id: 'account.activation.support.link', - defaultMessage: 'contact support', - description: 'Link text used in account activation error message to go to learner help center', - }, // Email Confirmation Strings 'account.confirmation.success.message.title': { id: 'account.confirmation.success.message.title', diff --git a/src/login/tests/AccountActivationMessage.test.jsx b/src/login/tests/AccountActivationMessage.test.jsx index df2a0c085..d282527d6 100644 --- a/src/login/tests/AccountActivationMessage.test.jsx +++ b/src/login/tests/AccountActivationMessage.test.jsx @@ -58,7 +58,7 @@ describe('AccountActivationMessage', () => { ); const expectedMessage = 'Your account could not be activated' - + 'Something went wrong, please contact support to resolve this issue.'; + + 'Something went wrong, please contact to resolve this issue.'; expect(screen.getByText( '', @@ -121,7 +121,7 @@ describe('EmailConfirmationMessage', () => { , ); const expectedMessage = 'Your email could not be confirmed' - + 'Something went wrong, please contact support to resolve this issue.'; + + 'Something went wrong, please contact to resolve this issue.'; expect(screen.getByText( '', { selector: '#account-activation-message' },