diff --git a/components/row-events.js b/components/row-events.js index 872b4544d..5b106cb79 100644 --- a/components/row-events.js +++ b/components/row-events.js @@ -9,35 +9,39 @@ const extractImageUrl = input => { return matches ? matches[1] : ''; }; -const RowEvent = props => { +const RowEvent = ({ + link, + isMultiLine, + fluid, + description, + name, + venue, + time, + yesCount, + status, +}) => { return ( - - {props.description ? ( - - ) : ( -
- )} + + {description ? :
} - {props.name} + {name}
- - {props.venue === undefined ? 'Online' : props.venue.name} - + {venue === undefined ? 'Online' : venue.name}
- {format(props.time, "h:mm A, ddd MMM Do 'YY")} + {format(time, "h:mm A, ddd MMM Do 'YY")} - {props.yesCount} - {props.status === 'upcoming' ? ' attending' : ' attended'} + {yesCount} + {status === 'upcoming' ? ' attending' : ' attended'} - {props.venue === undefined ? 'Free session' : 'Free entry'} + {venue === undefined ? 'Free session' : 'Free entry'}