From daa0cc0199bbf720629de3149c50a800f557db19 Mon Sep 17 00:00:00 2001 From: Anirban Ghosh Date: Sun, 20 Oct 2024 19:07:33 +0530 Subject: [PATCH] added dropdown in gender selection --- frontend/app/register/driver/page.jsx | 22 +++++++--------------- frontend/app/register/passenger/page.jsx | 23 +++++++++++++++-------- 2 files changed, 22 insertions(+), 23 deletions(-) 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 }) => {
- + > + + + + +
@@ -160,13 +154,11 @@ const DriverRegistration = ({ data }) => { defaultValue={selectedCar.Combined_Name} onChange={handleCarChange} renderInput={(params) => } - // className={styles.inputField} sx={{width: '83%'}} />
- { e.preventDefault(); console.log(formData); }; - return ( + return (

Register as Passenger

-
Your details:
- + {
- + > + + + + +
@@ -107,7 +110,12 @@ const PassengerRegistration = () => { }} style={{ marginTop: "auto" }} > - +
{/*
@@ -183,4 +191,3 @@ const PassengerRegistration = () => { }; export default PassengerRegistration; -