Skip to content

Commit

Permalink
chore(onboarding-ui): Remove back button in RegisterServer (#1175)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp authored Sep 27, 2023
1 parent aa6fc7b commit 7a32bbf
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ export const SelfHostedRegistration: Story = ({ offline }) => {
agreement: serverRegistration?.agreement,
}),
}}
onBackButtonClick={() => navigateTo('/org-info')}
onSubmit={handleRegisterServerSubmit}
offline={offline}
onClickRegisterLater={() => navigateTo('/standalone-confirmation')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ it('renders without crashing', () => {
currentStep={1}
stepCount={1}
validateEmail={() => true}
onBackButtonClick={() => undefined}
onClickRegisterLater={() => undefined}
onSubmit={() => undefined}
/>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ type RegisterServerFormProps = {
initialValues?: Partial<RegisterServerPayload>;
validateEmail?: Validate<string>;
onSubmit: SubmitHandler<RegisterServerPayload>;
onBackButtonClick: () => void;
onClickRegisterLater: () => void;
termsHref?: string;
policyHref?: string;
Expand All @@ -40,7 +39,6 @@ const RegisterServerForm = ({
validateEmail,
offline,
onSubmit,
onBackButtonClick,
onClickRegisterLater,
termsHref = 'https://rocket.chat/terms',
policyHref = 'https://rocket.chat/privacy',
Expand Down Expand Up @@ -162,9 +160,6 @@ const RegisterServerForm = ({
<Form.Footer>
<Box display='flex' flexDirection='column'>
<ButtonGroup vertical={isMobile} flexGrow={1}>
<Button onClick={onBackButtonClick}>
{t('component.form.action.back')}
</Button>
<Button
type='submit'
primary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ it('renders without crashing', () => {
currentStep={1}
stepCount={1}
onSubmit={() => undefined}
onBackButtonClick={() => undefined}
onClickRegisterLater={() => undefined}
/>,
div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type RegisterServerPageProps = {
stepCount: number;
initialValues?: Partial<RegisterServerPayload>;
onSubmit: SubmitHandler<RegisterServerPayload>;
onBackButtonClick: () => void;
onClickRegisterLater: () => void;
offline?: boolean;
validateEmail?: Validate<string>;
Expand Down

0 comments on commit 7a32bbf

Please sign in to comment.