import React from 'react' import { Link } from 'react-router-dom' import { Grid, Paper, Typography, Button } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' const styles = theme => ({ root: { flexGrow: 1, padding: 20, margin: 10 }, image: { width: 128, height: '100%', cursor: 'default' }, img: { margin: 'auto', display: 'block', maxWidth: '100%', maxHeight: '100%' }, buttonList: { margin: theme.spacing.unit, float: 'right' }, buttonGrid: { marginTop: -20 } }) class Event extends React.Component { render () { const classes = this.props.classes const { name, designator, startDatetime, finishDatetime, host, description } = this.props.event return ( {name} From : {startDatetime} To : {finishDatetime} Hosted by: {host.alias} ({host.lastName} {host.firstName}) Formula: First prize: Description : {description} ) } } export default withStyles(styles)(Event)