diff --git a/frontend/app/register/driver/page.jsx b/frontend/app/register/driver/page.jsx index 93e7a1e..90c57df 100644 --- a/frontend/app/register/driver/page.jsx +++ b/frontend/app/register/driver/page.jsx @@ -63,23 +63,13 @@ const DriverRegistration = ({ data }) => { const handleSubmit = (e) => { e.preventDefault(); - // localStorage.setItem('formData', JSON.stringify(formData)); router.push({ pathname: '/create-ride', }); }; - // const handleSubmit = (e) => { - // e.preventDefault(); - // console.log(formData); - - // localStorage.setItem('formData', JSON.stringify(formData)); - // window.location.href = '/create-ride'; - // }; - const handleCarChange = (event, newValue) => { setSelectedCar(newValue); - // const { carName, value } = event.target; setFormData({ ...formData, ['carName']: newValue.Combined_Name, @@ -119,13 +109,17 @@ const DriverRegistration = ({ data }) => {