From 44cec762fb855f0f77b2e4859bf4b137832add0d Mon Sep 17 00:00:00 2001 From: Attiya Ishaque Date: Wed, 19 Apr 2023 16:33:54 +0500 Subject: [PATCH] fix: replace faSignInAlt with paragon icon (#863) --- src/common-components/EnterpriseSSO.jsx | 11 +++--- src/common-components/SocialAuthProviders.jsx | 11 +++--- .../SocialAuthProviders.test.jsx.snap | 34 ++++++++++--------- src/login/tests/LoginPage.test.jsx | 16 ++++----- src/register/tests/RegistrationPage.test.jsx | 33 +++++++++++++++--- 5 files changed, 68 insertions(+), 37 deletions(-) diff --git a/src/common-components/EnterpriseSSO.jsx b/src/common-components/EnterpriseSSO.jsx index e27bd1a6..a3361a38 100644 --- a/src/common-components/EnterpriseSSO.jsx +++ b/src/common-components/EnterpriseSSO.jsx @@ -4,8 +4,9 @@ import { getConfig } from '@edx/frontend-platform'; import { useIntl } from '@edx/frontend-platform/i18n'; import { Button, Form, + Icon, } from '@edx/paragon'; -import { faSignInAlt } from '@fortawesome/free-solid-svg-icons'; +import { Login } from '@edx/paragon/icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import PropTypes from 'prop-types'; @@ -54,9 +55,11 @@ const EnterpriseSSO = (props) => { : ( <> diff --git a/src/common-components/SocialAuthProviders.jsx b/src/common-components/SocialAuthProviders.jsx index 8a21211b..1ff73f1f 100644 --- a/src/common-components/SocialAuthProviders.jsx +++ b/src/common-components/SocialAuthProviders.jsx @@ -2,7 +2,8 @@ import React from 'react'; import { getConfig } from '@edx/frontend-platform'; import { useIntl } from '@edx/frontend-platform/i18n'; -import { faSignInAlt } from '@fortawesome/free-solid-svg-icons'; +import { Icon } from '@edx/paragon'; +import { Login } from '@edx/paragon/icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import PropTypes from 'prop-types'; @@ -36,9 +37,11 @@ const SocialAuthProviders = (props) => { ) : ( )} diff --git a/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap b/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap index 6152667a..3176a864 100644 --- a/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +++ b/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap @@ -12,23 +12,25 @@ exports[`SocialAuthProviders should match social auth provider with default icon aria-hidden="true" className="font-container" > - + + + +