import React from 'react'; //import { connect } from "react-redux"; import './eventCard.scss'; import Sidebar from '../../components/sidebar/Sidebar'; export class EventCard extends React.Component { render() { const { event } = this.props; const dateArr = new Date(event.eventDate).toDateString().split(' '); console.log( event ); return ( <>
banner

{event.title}

{event.country}, {event.city}

{event.eventType}

{ dateArr.map( (el, ind) => ind > 0 ? {el} : null ) }

{event.ageLimit}

{event.aidStations}

{event.awardMedals}

{event.equipmentStorage}

{event.halfmarathoneDistancePrice}

{event.marathoneDistancePrice}

{event.maximumTime}

{event.overview}

{event.parking}

{event.refreshments}

{/*{event.contentVideo} {event.mainBannerPicture} {event.map} */}
) } } export default EventCard; /*const mapStateToProps = state => { return { events: state.getEvents.events }; }; export default connect( mapStateToProps, { getAllEvents } )(Events);*/