From 91a1b32a8854827d97c6282d8e49abec3aa486ba Mon Sep 17 00:00:00 2001 From: DyCTaTOR <125912249+DyCTaTOR@users.noreply.github.com> Date: Sat, 23 Dec 2023 00:13:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BE=D1=88=D0=B8?= =?UTF-8?q?=D0=B1=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Lab5/src/pages/Page3.jsx | 46 ---------------------------------------- 1 file changed, 46 deletions(-) diff --git a/Lab5/src/pages/Page3.jsx b/Lab5/src/pages/Page3.jsx index 25125b8..911f7dc 100644 --- a/Lab5/src/pages/Page3.jsx +++ b/Lab5/src/pages/Page3.jsx @@ -1,52 +1,6 @@ -import { useState } from 'react'; -import { Button, Form, Input } from 'react-bootstrap'; - const Page3 = () => { - const someValue = 'Некоторое значение'; - const [validated, setValidated] = useState(false); - const [formData, setFormData] = useState({ - lastname: '', - firstname: '', - email: '', - password: '', - date: '', - disabled: someValue, - readonly: someValue, - color: '#ff0055', - checkbox1: false, - checkbox2: false, - radio1: false, - radio2: false, - selected: '', - }); - - const handleSubmit = (event) => { - const form = event.currentTarget; - event.preventDefault(); - event.stopPropagation(); - if (form.checkValidity() !== false) { - console.log(formData); - } - setValidated(true); - }; - - const handleChange = (event) => { - const inputName = event.target.name; - const inputValue = event.target.type === 'checkbox' ? event.target.checked : event.target.value; - setFormData({ - ...formData, - [inputName]: inputValue, - }); - }; - return (