From 7a32bbf2d1fa1a126a86185a3f665061ae0d9b06 Mon Sep 17 00:00:00 2001 From: Tiago Evangelista Pinto Date: Wed, 27 Sep 2023 12:44:43 -0300 Subject: [PATCH] chore(onboarding-ui): Remove back button in RegisterServer (#1175) --- .../src/flows/SelfHostedRegistration/stories.tsx | 1 - .../src/forms/RegisterServerForm/RegisterServerForm.spec.tsx | 1 - .../src/forms/RegisterServerForm/RegisterServerForm.tsx | 5 ----- .../src/pages/RegisterServerPage/RegisterServerPage.spec.tsx | 1 - .../src/pages/RegisterServerPage/RegisterServerPage.tsx | 1 - 5 files changed, 9 deletions(-) diff --git a/packages/onboarding-ui/src/flows/SelfHostedRegistration/stories.tsx b/packages/onboarding-ui/src/flows/SelfHostedRegistration/stories.tsx index 90a2cfe65a..8c91dc5994 100644 --- a/packages/onboarding-ui/src/flows/SelfHostedRegistration/stories.tsx +++ b/packages/onboarding-ui/src/flows/SelfHostedRegistration/stories.tsx @@ -125,7 +125,6 @@ export const SelfHostedRegistration: Story = ({ offline }) => { agreement: serverRegistration?.agreement, }), }} - onBackButtonClick={() => navigateTo('/org-info')} onSubmit={handleRegisterServerSubmit} offline={offline} onClickRegisterLater={() => navigateTo('/standalone-confirmation')} diff --git a/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.spec.tsx b/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.spec.tsx index 58187d3060..de7eb4cc39 100644 --- a/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.spec.tsx +++ b/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.spec.tsx @@ -9,7 +9,6 @@ it('renders without crashing', () => { currentStep={1} stepCount={1} validateEmail={() => true} - onBackButtonClick={() => undefined} onClickRegisterLater={() => undefined} onSubmit={() => undefined} />, diff --git a/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.tsx b/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.tsx index 9bf6e4dba6..374e8ab1fc 100644 --- a/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.tsx +++ b/packages/onboarding-ui/src/forms/RegisterServerForm/RegisterServerForm.tsx @@ -26,7 +26,6 @@ type RegisterServerFormProps = { initialValues?: Partial; validateEmail?: Validate; onSubmit: SubmitHandler; - onBackButtonClick: () => void; onClickRegisterLater: () => void; termsHref?: string; policyHref?: string; @@ -40,7 +39,6 @@ const RegisterServerForm = ({ validateEmail, offline, onSubmit, - onBackButtonClick, onClickRegisterLater, termsHref = 'https://rocket.chat/terms', policyHref = 'https://rocket.chat/privacy', @@ -162,9 +160,6 @@ const RegisterServerForm = ({ -