Created
January 23, 2016 15:24
-
-
Save Scarysize/bd15d704b8c09d014072 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import moment from 'moment'; | |
moment.locale('de'); | |
const EventItem = ({ event, blacklist, recommend }) => { | |
const time = moment(event.start).format('lll'); | |
return ( | |
<li className="collection-item"> | |
<div className="row"> | |
<a href={fbUrl} target="_blank"> | |
<div className="col s6 eventLink"> | |
{event.name} | |
</div> | |
</a> | |
<div className="col s4">{time}</div> | |
</div> | |
</li> | |
); | |
}; | |
export default EventItem; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment