Revert "Refactor Timeline component and timeline, mapping logic"

This commit is contained in:
Lachlan Kermode
2018-12-12 16:38:15 +00:00
committed by GitHub
parent 9d4909dea8
commit 44b0dfb57e
4 changed files with 144 additions and 186 deletions

View File

@@ -1,15 +0,0 @@
import React from 'react';
const TimelineHeader = ({ title, date0, date1, onClick }) => (
<div className="timeline-header">
<div className="timeline-toggle" onClick={() => onClick()}>
<p><i className="arrow-down"></i></p>
</div>
<div className="timeline-info">
<p>{title}</p>
<p>{date0} - {date1}</p>
</div>
</div>
);
export default TimelineHeader;