Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. class Ride extends React.Component {
  2. submitHandler(val) {
  3. const email = val.email;
  4. const name = val.customer_name;
  5. const driver = val.customer_name;
  6. const phoneNumber = val.phone_number;
  7. const seats = val.seats;
  8. const date = val.pickup_time;
  9. const courtesyTime = val.courtesyTime;
  10. const destination = val.address;
  11. const pickupLocation = val.pickupLocation;
  12. const radius = val.radius;
  13. const baby_seat = val.extras_baby;
  14. const wheelchair_access = val.extras_wheel;
  15. const note = val.note;
  16. this.props.createRide(email, driver, phoneNumber, seats, date, courtesyTime, destination, radius, baby_seat, note, wheelchair_access, pickupLocation)
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement