mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-24 17:11:49 +00:00
feat: birthSurname not required field
This commit is contained in:
parent
74bade7450
commit
ce94ec9eea
1 changed files with 2 additions and 2 deletions
|
|
@ -121,7 +121,7 @@
|
||||||
.string()
|
.string()
|
||||||
.required()
|
.required()
|
||||||
.matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/),
|
.matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/),
|
||||||
birthSurname: yup.string().required(),
|
birthSurname: yup.string(),
|
||||||
sex: yup.string(),
|
sex: yup.string(),
|
||||||
address: yup.string(),
|
address: yup.string(),
|
||||||
street: yup.string().required(),
|
street: yup.string().required(),
|
||||||
|
|
@ -539,7 +539,7 @@
|
||||||
<TextField
|
<TextField
|
||||||
error={$typedErrors['candidate']['birthSurname']}
|
error={$typedErrors['candidate']['birthSurname']}
|
||||||
bind:value={$form.candidate.birthSurname}
|
bind:value={$form.candidate.birthSurname}
|
||||||
placeholder={$LL.input.birthSurname()}
|
placeholder={`${$LL.input.birthSurname()} (${$LL.input.optional()})`}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue