Skip to content

Commit

Permalink
run yarn lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kdachev97 committed Mar 18, 2024
1 parent ce55ef3 commit f09a796
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function CorporateRegisterForm({ onSubmit, loading }: RegisterFor
<AcceptTermsField name="terms" />
<AcceptPrivacyPolicyField name="gdpr" />
<AcceptNewsLetterField name="newsletter" />
<HelpUsImproveField name='helpUsImprove' />
<HelpUsImproveField name="helpUsImprove" />
</Grid>
<Grid item xs={12}>
<SubmitButton fullWidth label="auth:cta.register" loading={loading} />
Expand Down
4 changes: 2 additions & 2 deletions src/components/client/auth/register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ export default function RegisterForm({ onSubmit, loading }: RegisterFormProps) {
<AcceptTermsField name="terms" />
<AcceptPrivacyPolicyField name="gdpr" />
<AcceptNewsLetterField name="newsletter" />
<HelpUsImproveField name='helpUsImprove' />
<HelpUsImproveField name="helpUsImprove" />
</Grid>
<Grid item xs={12}>
<SubmitButton fullWidth label="auth:cta.register" loading={loading} />
</Grid>
</Grid>
</GenericForm>
)
}
}
8 changes: 2 additions & 6 deletions src/components/common/form/HelpUsImproveField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@ export default function HelpUsImproveField({ name }: HelpUsImproveFieldProps) {
return (
<CheckboxField
name={name}
label={
<Typography variant="body2">
{t('validation:help-us-improve')}{' '}
</Typography>
}
label={<Typography variant="body2">{t('validation:help-us-improve')} </Typography>}
/>
)
}
}
6 changes: 3 additions & 3 deletions src/gql/user-registration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ export type IndividualRegisterFormData = {
confirmPassword: string
terms: boolean
gdpr: boolean
newsletter?: boolean,
helpUsImprove?: boolean,
newsletter?: boolean
helpUsImprove?: boolean
}

export type CorporateRegisterFormData = IndividualRegisterFormData & {
companyName: string
companyNumber: string
}
}

0 comments on commit f09a796

Please sign in to comment.