Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Ride extends React.Component {
- submitHandler(val) {
- const email = val.email;
- const name = val.customer_name;
- const driver = val.customer_name;
- const phoneNumber = val.phone_number;
- const seats = val.seats;
- const date = val.pickup_time;
- const courtesyTime = val.courtesyTime;
- const destination = val.address;
- const pickupLocation = val.pickupLocation;
- const radius = val.radius;
- const baby_seat = val.extras_baby;
- const wheelchair_access = val.extras_wheel;
- const note = val.note;
- this.props.createRide(email, driver, phoneNumber, seats, date, courtesyTime, destination, radius, baby_seat, note, wheelchair_access, pickupLocation)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement