Remove pesel field from form

This commit is contained in:
adam-skowronek 2023-01-16 23:23:55 +01:00
parent fe06023f82
commit dd333a6674

View File

@ -90,53 +90,6 @@ const AddStudent = () => {
<InputError>Indeks musi mieć 6 cyfr</InputError>
)}
</div>
<div className="form-control">
<label className="label" htmlFor="pesel">
Pesel
</label>
<input
className="input input-bordered"
id="pesel"
type="text"
{...register('pesel', {
required: false,
pattern: /^[0-9]{11}$/,
})}
/>
{errors.pesel?.type === 'pattern' && (
<InputError>Pesel musi mieć 11 cyfr</InputError>
)}
</div>
{/* <div className="form-control gap-2">
<label className="label">Tryb studiów</label>
<div className="flex gap-2">
<input
className="radio"
id="mode-1"
type="radio"
{...register('mode', {
required: true,
})}
value="1"
/>
<label htmlFor="mode-1">Stacjonarny</label>
</div>
<div className="flex gap-2">
<input
className="radio"
id="mode-0"
type="radio"
{...register('mode', {
required: true,
})}
value="0"
/>
<label htmlFor="mode-0">Niestacjonarny</label>
</div>
{errors.mode?.type === 'required' && (
<InputError>Wybierz tryb studiów</InputError>
)}
</div> */}
<button className="btn btn-success mt-4">Dodaj studenta</button>
</form>
)