diff --git a/src/App.js b/src/App.js index 5f4cdf8..bfef1c7 100644 --- a/src/App.js +++ b/src/App.js @@ -6,15 +6,15 @@ import Timeline from './components/Timeline'; class App extends Component { render() { - console.log(timelineData); - - // Customize the code below + return (

Application title

+
); diff --git a/src/components/Timeline.js b/src/components/Timeline.js index 624d4ec..aa8dbbf 100644 --- a/src/components/Timeline.js +++ b/src/components/Timeline.js @@ -2,9 +2,24 @@ import React from 'react'; import './Timeline.css'; import TimelineEvent from './TimelineEvent'; -const Timeline = () => { - // Fill in your code here - return; +const Timeline = (props) => { + const timelineObjects = props.events.map((timeline, i) => { + return ( + + ) + }); + return ( +
+ +
+ ) } export default Timeline; diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js index 9079165..70165d8 100644 --- a/src/components/TimelineEvent.js +++ b/src/components/TimelineEvent.js @@ -2,9 +2,14 @@ import React from 'react'; import './TimelineEvent.css'; import Timestamp from './Timestamp'; -const TimelineEvent = () => { - // Fill in your code here - return; +const TimelineEvent = (props) => { + return ( +
+

{props.person}

+

{props.status}

+

+
+ ); } export default TimelineEvent;