From a4af6288e8ee8b91c50034c7d50b6c53bcd9acdd Mon Sep 17 00:00:00 2001 From: Adeel Khan Date: Mon, 9 Nov 2020 19:07:45 +0500 Subject: [PATCH] Moving from Custom alert to paragon alert widget. VAN-43 --- src/logistration/ConfirmationAlert.jsx | 5 +- .../ConfirmationAlert.test.jsx.snap | 62 ++++++++-------- src/reset-password/ResetFailure.jsx | 4 +- src/reset-password/ResetSuccess.jsx | 5 +- .../ResetPasswordPage.test.jsx.snap | 70 +++++++++---------- 5 files changed, 69 insertions(+), 77 deletions(-) diff --git a/src/logistration/ConfirmationAlert.jsx b/src/logistration/ConfirmationAlert.jsx index ff56d997..fb1ebe15 100644 --- a/src/logistration/ConfirmationAlert.jsx +++ b/src/logistration/ConfirmationAlert.jsx @@ -1,9 +1,8 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from '@edx/frontend-platform/i18n'; -import { Hyperlink } from '@edx/paragon'; +import { Alert, Hyperlink } from '@edx/paragon'; -import Alert from './Alert'; const ConfirmationAlert = (props) => { const { email } = props; @@ -25,7 +24,7 @@ const ConfirmationAlert = (props) => { return (

-
-
-

+ + Check Your Email + +

+ + You entered + + test@example.com + + . If this email address is associated with your edX account, we will send a message with password recovery instructions to this email address. +
+ If you do not receive a password reset message after 1 minute, verify that you entered the correct email address, or check your spam folder. +
+ If you need further assistance, + - Check Your Email + contact technical support -

- - You entered - - test@example.com - - . If this email address is associated with your edX account, we will send a message with password recovery instructions to this email address. -
- If you do not receive a password reset message after 1 minute, verify that you entered the correct email address, or check your spam folder. -
- If you need further assistance, -
- - contact technical support - - - . - - + + . + `; diff --git a/src/reset-password/ResetFailure.jsx b/src/reset-password/ResetFailure.jsx index feaf6c7d..50890860 100644 --- a/src/reset-password/ResetFailure.jsx +++ b/src/reset-password/ResetFailure.jsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from '@edx/frontend-platform/i18n'; -import Alert from '../logistration/Alert'; +import { Alert } from '@edx/paragon'; const ResetFailureMessage = (props) => { const errorMessage = props.errors; @@ -11,7 +11,7 @@ const ResetFailureMessage = (props) => {
- +
{ const loginPasswordLink = ( @@ -20,7 +19,7 @@ const ResetSuccessMessage = () => {
- +

-
-
-

+ + Password Reset Complete. + +

+ + Your password has been reset. + - Password Reset Complete. + Sign-in -

- - Your password has been reset. - - - Sign-in - - - to your account. - -
+ + to your account. +
@@ -234,21 +232,19 @@ Array [ className="text-center mt-3" >
-
-
-
- - Password reset was unsuccessfull. - -
+ } + > + + Password reset was unsuccessfull. +