From e992d432b35eeda0fd3fe313ad26905aed3ba038 Mon Sep 17 00:00:00 2001 From: uzairr Date: Mon, 28 Dec 2020 20:16:07 +0500 Subject: [PATCH] re-align loader --- src/logistration/_style.scss | 8 ++++ src/reset-password/ResetPasswordPage.jsx | 2 +- src/reset-password/Spinner.jsx | 40 ++++-------------- .../ResetPasswordPage.test.jsx.snap | 42 ++----------------- 4 files changed, 20 insertions(+), 72 deletions(-) diff --git a/src/logistration/_style.scss b/src/logistration/_style.scss index 5ae1fb67..cf8c28da 100644 --- a/src/logistration/_style.scss +++ b/src/logistration/_style.scss @@ -222,3 +222,11 @@ $apple-focus-black: $apple-black; .invalid-feedback { color: $red; } + +.no-inset{ + inset: 0; +} + +.full-vertical-height{ + height: 100vh; +} diff --git a/src/reset-password/ResetPasswordPage.jsx b/src/reset-password/ResetPasswordPage.jsx index 7c71ae87..00f69bfd 100644 --- a/src/reset-password/ResetPasswordPage.jsx +++ b/src/reset-password/ResetPasswordPage.jsx @@ -64,7 +64,7 @@ const ResetPasswordPage = (props) => { const { token } = props.match.params; if (token) { props.validateToken(token); - return ; + return ; } } else if (props.token_status === 'invalid') { return (); diff --git a/src/reset-password/Spinner.jsx b/src/reset-password/Spinner.jsx index 1589b695..05707f46 100644 --- a/src/reset-password/Spinner.jsx +++ b/src/reset-password/Spinner.jsx @@ -1,38 +1,12 @@ import React from 'react'; -import PropTypes from 'prop-types'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; -import { FormattedMessage } from '@edx/frontend-platform/i18n'; -import { faSpinner } from '@fortawesome/free-solid-svg-icons'; +import { Spinner as ParagonSpinner } from '@edx/paragon'; -const Spinner = (props) => { - const textMessage = props.text; - return ( -
-
-
-
-

- - -

-
-
-
+const Spinner = () => ( +
+
+
- ); -}; +
+); -Spinner.defaultProps = { - text: '', -}; -Spinner.propTypes = { - text: PropTypes.string, -}; export default Spinner; diff --git a/src/reset-password/tests/__snapshots__/ResetPasswordPage.test.jsx.snap b/src/reset-password/tests/__snapshots__/ResetPasswordPage.test.jsx.snap index cc7980b2..00ce8887 100644 --- a/src/reset-password/tests/__snapshots__/ResetPasswordPage.test.jsx.snap +++ b/src/reset-password/tests/__snapshots__/ResetPasswordPage.test.jsx.snap @@ -488,48 +488,14 @@ Array [ exports[`ResetPasswordPage show spinner component during token validation 1`] = `
-
-

- - Token validation in progress .. - - -

-
-
+ className="spinner-border text-primary" + />
`;