diff --git a/src/App.js b/src/App.js
index 5f4cdf8..4331dc2 100644
--- a/src/App.js
+++ b/src/App.js
@@ -3,18 +3,34 @@ import './App.css';
import timelineData from './data/timeline.json';
import Timeline from './components/Timeline';
+import TimelineEvent from './components/TimelineEvent';
class App extends Component {
render() {
console.log(timelineData);
-
+ const timelineComponent = timelineData["events"].map((post,i) => {
+ return (
+
+
+
+ )
+ }
+ )
+ const data = timelineData["events"]
// Customize the code below
return (
- Application title
+ Ada's Social Media Feed
+
);
diff --git a/src/components/Timeline.js b/src/components/Timeline.js
index 624d4ec..3f867e5 100644
--- a/src/components/Timeline.js
+++ b/src/components/Timeline.js
@@ -2,9 +2,16 @@ import React from 'react';
import './Timeline.css';
import TimelineEvent from './TimelineEvent';
-const Timeline = () => {
- // Fill in your code here
- return;
+const Timeline = (props) => {
+ return (
+
+
+ {props.person}
+
+ {props.timeStamp}
+ {props.status}
+
+ );
}
export default Timeline;
diff --git a/src/components/TimelineEvent.js b/src/components/TimelineEvent.js
index 9079165..6c69db1 100644
--- a/src/components/TimelineEvent.js
+++ b/src/components/TimelineEvent.js
@@ -2,9 +2,21 @@ 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;
diff --git a/src/components/Timestamp.js b/src/components/Timestamp.js
index 9a39231..f662745 100644
--- a/src/components/Timestamp.js
+++ b/src/components/Timestamp.js
@@ -2,7 +2,7 @@ import React from 'react';
import moment from 'moment';
const Timestamp = (props) => {
- const time = moment(props.time);
+ const time = moment(props);
const absolute = time.format('MMMM Do YYYY, h:mm:ss a');
const relative = time.fromNow();