From 1cabd2a51464611e8cdc98bb7df649186af84ae7 Mon Sep 17 00:00:00 2001 From: Zainab Amir Date: Fri, 31 Mar 2023 14:38:42 +0500 Subject: [PATCH] fix: sso providers position (#824) --- src/common-components/SocialAuthProviders.jsx | 3 +- .../SocialAuthProviders.test.jsx.snap | 164 +++++++++--------- 2 files changed, 82 insertions(+), 85 deletions(-) diff --git a/src/common-components/SocialAuthProviders.jsx b/src/common-components/SocialAuthProviders.jsx index b2bb3d07..f786907d 100644 --- a/src/common-components/SocialAuthProviders.jsx +++ b/src/common-components/SocialAuthProviders.jsx @@ -50,7 +50,8 @@ const SocialAuthProviders = (props) => { )); - return {socialAuth}; + // eslint-disable-next-line react/jsx-no-useless-fragment + return <>{socialAuth}; }; SocialAuthProviders.defaultProps = { diff --git a/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap b/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap index 41109b54..6152667a 100644 --- a/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap +++ b/src/common-components/tests/__snapshots__/SocialAuthProviders.test.jsx.snap @@ -1,101 +1,97 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`SocialAuthProviders should match social auth provider with default icon snapshot 1`] = ` - - - + /> + + + + + Sign in with Apple + + `; exports[`SocialAuthProviders should match social auth provider with iconClass snapshot 1`] = ` - - - + /> + + + + + Sign in with Apple + + `; exports[`SocialAuthProviders should match social auth provider with iconImage snapshot 1`] = ` - +Array [ + , - + , +] `;