Commit 08f14c0b authored by Maxime Chaillet's avatar Maxime Chaillet

use fetched and fetching to handle event and event count reception. Center date in event list.

parent d2b47891
......@@ -59,7 +59,7 @@ class EventList extends React.Component {
<tbody>
{this.getItems().map((event, index) => {
if (event.type === "date") {
return <tr key={index}><td style={{ borderTop: '1px solid #f2f2f2', textAlign: 'center', fontSize: '18px', fontWeight: 'bold' }} colSpan={3} ><a name={event.anchor}></a> {event.text}</td></tr>;
return <tr key={index}><td style={{ borderTop: '1px solid #f2f2f2', textAlign: 'center', fontSize: '18px', fontWeight: 'bold' }} colSpan={4} ><a name={event.anchor}></a> {event.text}</td></tr>;
}
return <Event key={index} event={event} onEventClicked={this.props.onEventClicked} ></Event>
})}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment