mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-07 12:00:43 +00:00
refactor: code cleanup
This commit is contained in:
parent
6b7abb5eed
commit
8ff4881a08
1 changed files with 0 additions and 22 deletions
|
|
@ -200,12 +200,10 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const onSubmit = async (values: CandidateData) => {
|
const onSubmit = async (values: CandidateData) => {
|
||||||
console.log('submit clicked')
|
|
||||||
if (pageIndex === pageCount) {
|
if (pageIndex === pageCount) {
|
||||||
// clone values to oldValues
|
// clone values to oldValues
|
||||||
let oldValues = JSON.parse(JSON.stringify(values));
|
let oldValues = JSON.parse(JSON.stringify(values));
|
||||||
try {
|
try {
|
||||||
console.log('submitting values', values);
|
|
||||||
if (values.candidate.citizenship === 'Česká republika') {
|
if (values.candidate.citizenship === 'Česká republika') {
|
||||||
if (
|
if (
|
||||||
!isPersonalIdNumberWithBirthdateValid(
|
!isPersonalIdNumberWithBirthdateValid(
|
||||||
|
|
@ -432,16 +430,6 @@
|
||||||
přijímací řízení. Všechny údaje jsou důležité.
|
přijímací řízení. Všechny údaje jsou důležité.
|
||||||
</p>
|
</p>
|
||||||
<div class="flex field">
|
<div class="flex field">
|
||||||
<!-- <span>
|
|
||||||
<TextField
|
|
||||||
error={$typedErrors['candidate']['street']}
|
|
||||||
on:change={handleChange}
|
|
||||||
bind:value={$form.candidate.street}
|
|
||||||
type="text"
|
|
||||||
placeholder="Ulice"
|
|
||||||
helperText="Uveďte ulici (např. Preslova)."
|
|
||||||
/>
|
|
||||||
</span> -->
|
|
||||||
<span class="w-[66%]">
|
<span class="w-[66%]">
|
||||||
<NameField
|
<NameField
|
||||||
error={$typedErrors['candidate']['street'] || $typedErrors['candidate']['houseNumber']}
|
error={$typedErrors['candidate']['street'] || $typedErrors['candidate']['houseNumber']}
|
||||||
|
|
@ -453,16 +441,6 @@
|
||||||
|
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<!-- <span class="ml-2">
|
|
||||||
<TextField
|
|
||||||
error={$typedErrors['candidate']['houseNumber']}
|
|
||||||
on:change={handleChange}
|
|
||||||
bind:value={$form.candidate.houseNumber}
|
|
||||||
type="text"
|
|
||||||
placeholder="č. p."
|
|
||||||
helperText="Uveďte číslo popisné. (např. 72)"
|
|
||||||
/>
|
|
||||||
</span> -->
|
|
||||||
<span class="ml-2 w-[33%]">
|
<span class="ml-2 w-[33%]">
|
||||||
<TextField
|
<TextField
|
||||||
error={$typedErrors['candidate']['zip']}
|
error={$typedErrors['candidate']['zip']}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue