Skip to content

Commit

Permalink
remove back button
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp committed Sep 22, 2023
1 parent 4bcdbf0 commit 22d4948
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 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 @@ -27,7 +27,6 @@ type RegisterServerFormProps = {
initialValues?: Partial<RegisterServerPayload>;
validateEmail?: Validate<string>;
onSubmit: SubmitHandler<RegisterServerPayload>;
onBackButtonClick: () => void;
onClickRegisterLater: () => void;
termsHref?: string;
policyHref?: string;
Expand All @@ -41,7 +40,6 @@ const RegisterServerForm = ({
validateEmail,
offline,
onSubmit,
onBackButtonClick,
onClickRegisterLater,
termsHref = 'https://rocket.chat/terms',
policyHref = 'https://rocket.chat/privacy',
Expand Down Expand Up @@ -186,9 +184,6 @@ const RegisterServerForm = ({
)}
<Form.Footer>
<ButtonGroup vertical={isMobile} flexGrow={1}>
<Button onClick={onBackButtonClick}>
{t('component.form.action.back')}
</Button>
<Button
type='submit'
primary
Expand All @@ -198,7 +193,6 @@ const RegisterServerForm = ({
? t('component.form.action.registerNow')
: t('component.form.action.register')}
</Button>

{offline && (
<ButtonGroup flexGrow={1} align='end' withTruncatedText>
<ActionLink onClick={onClickRegisterLater}>
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 @@ -16,7 +16,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 22d4948

Please sign in to comment.