From b7cfad0559eab53b0241c7e3ba1f7bec9e308c3c Mon Sep 17 00:00:00 2001 From: yunakim714 Date: Mon, 6 Jan 2025 12:42:42 -0500 Subject: [PATCH 01/25] handle error states for reset password and social login --- .../app/components/social-login/index.jsx | 6 ++++-- .../template-retail-react-app/app/constants.js | 6 +++++- .../app/hooks/use-auth-modal.js | 10 +++++----- .../app/pages/social-login-redirect/index.jsx | 4 ++-- .../app/static/translations/compiled/en-GB.json | 6 ++++++ .../app/static/translations/compiled/en-US.json | 6 ++++++ .../app/static/translations/compiled/en-XA.json | 14 ++++++++++++++ .../translations/en-GB.json | 3 +++ .../translations/en-US.json | 3 +++ 9 files changed, 48 insertions(+), 10 deletions(-) diff --git a/packages/template-retail-react-app/app/components/social-login/index.jsx b/packages/template-retail-react-app/app/components/social-login/index.jsx index 13e17e3ee2..efa3559f7e 100644 --- a/packages/template-retail-react-app/app/components/social-login/index.jsx +++ b/packages/template-retail-react-app/app/components/social-login/index.jsx @@ -67,7 +67,7 @@ const SocialLogin = ({form, idps}) => { }) }, [idps]) - const onSocialLoginClick = async () => { + const onSocialLoginClick = async (name) => { try { // Save the path where the user logged in setSessionJSONItem('returnToPage', window.location.pathname) @@ -93,7 +93,9 @@ const SocialLogin = ({form, idps}) => { return ( config && (