Skip to content

Commit

Permalink
Registration form texts (#444)
Browse files Browse the repository at this point in the history
* SchoolSubForm.tsx removed dots from the end of non-sentences

* SchoolSubForm.tsx shortened too long tooltip text

* RegisterForm.tsx using you form instead of you all (tykanie instead of vykanie) consistently
  • Loading branch information
michalmasrna1 authored Nov 22, 2024
1 parent 808d2dd commit 6948155
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/components/RegisterForm/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const RegisterForm: FC = () => {
setError('email', {type: 'custom', message: `* ${error.response.data.email[0]}`})
}
} else {
alert('Neznáma chyba pri registrácii. Skúste to prosím neskôr.')
alert('Neznáma chyba pri registrácii. Skús to prosím neskôr.')
}
},
})
Expand All @@ -113,7 +113,7 @@ export const RegisterForm: FC = () => {
...requiredRule,
pattern: {
value: /^[\w%+.-]+@[\d.a-z-]+\.[a-z]{2,}$/iu,
message: '* Vložte správnu emailovú adresu.',
message: '* Vlož správnu emailovú adresu.',
},
}}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/SchoolSubForm/SchoolSubForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export const SchoolSubForm = ({control, watch, setValue, gap}: SchoolSubFormProp
const requiredRule = {required: '* Toto pole nemôže byť prázdne.'}
return (
<Stack gap={gap}>
<FormCheckbox control={control} name="without_school" label="nie som študent základnej ani strednej školy." />
<FormCheckbox control={control} name="without_school" label="nie som študent základnej ani strednej školy" />
<FormAutocomplete
control={control}
name="school"
Expand All @@ -96,14 +96,14 @@ export const SchoolSubForm = ({control, watch, setValue, gap}: SchoolSubFormProp
<FormCheckbox
control={control}
name="school_not_found"
label="moja škola sa v zozname nenachádza."
label="moja škola sa v zozname nenachádza"
disabled={without_school}
/>
{school_not_found && (
<FormInput
control={control}
name="new_school_description"
label="povedz nám, na akú školu chodíš, aby sme ti ju mohli pridať*"
label="názov školy*"
rules={school_not_found ? requiredRule : {}}
sx={{mb: '1rem'}}
/>
Expand Down

0 comments on commit 6948155

Please sign in to comment.