import React, { Component } from "react"; import { reduxForm, Field } from "redux-form"; import "./adminResultsForm.scss"; import { customInput } from "../customFields/customInput/customInput"; import { customSelect } from "../customFields/customSelect/customSelect"; class AdminResultsForm extends Component { render() { const { handleSubmit, submitHandler, eventTypes, eventList, eventusers, onChangeTypeHandler, onChangeTitleHandler, onChangeInputTimeHandler } = this.props; const fullEventList = [{title: "Select Event", _id: 1}].concat(eventList) return (
{eventTypes.map(elem => )} {fullEventList && fullEventList.map(elem => )}
Name
Email
Country
Distance
Time
{eventusers && eventusers.map( elem =>
{elem.name}
{elem.email}
{elem.userCountry}
{elem.distance}
)}
); } } export default reduxForm({ form: "resultsForm", enableReinitialize: true })(AdminResultsForm);