From fd4404ec2859a10a70dca37df767b3a85edeafea Mon Sep 17 00:00:00 2001
From: Dmytro <98233552+DmytroAlipov@users.noreply.github.com>
Date: Tue, 14 Feb 2023 12:54:57 +0200
Subject: [PATCH] feat: don't show support button (#746)
Do not show the button "Need help logging in?"
if there is no support page for sign-in issues.
---
src/forgot-password/ForgotPasswordPage.jsx | 22 ++++++++++---------
.../tests/ForgotPasswordPage.test.jsx | 8 +++++++
2 files changed, 20 insertions(+), 10 deletions(-)
diff --git a/src/forgot-password/ForgotPasswordPage.jsx b/src/forgot-password/ForgotPasswordPage.jsx
index aa4a946a..9093b69a 100644
--- a/src/forgot-password/ForgotPasswordPage.jsx
+++ b/src/forgot-password/ForgotPasswordPage.jsx
@@ -141,16 +141,18 @@ const ForgotPasswordPage = (props) => {
onClick={handleSubmit}
onMouseDown={(e) => e.preventDefault()}
/>
-
{intl.formatMessage(messages['additional.help.text'], { platformName })}
diff --git a/src/forgot-password/tests/ForgotPasswordPage.test.jsx b/src/forgot-password/tests/ForgotPasswordPage.test.jsx
index bea4dbf9..0372f4c9 100644
--- a/src/forgot-password/tests/ForgotPasswordPage.test.jsx
+++ b/src/forgot-password/tests/ForgotPasswordPage.test.jsx
@@ -66,7 +66,15 @@ describe('ForgotPasswordPage', () => {
};
});
+ it('not should display need other help signing in button', () => {
+ const wrapper = mount(reduxWrapper(