You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
390 B
16 lines
390 B
3 years ago
|
import React from "react";
|
||
|
|
||
|
import timeLineData from "./data.js";
|
||
|
import TimeLineItem from "./TimeLineItem.js";
|
||
|
|
||
|
const TimeLine = () =>
|
||
|
timeLineData.length > 0 && (
|
||
3 years ago
|
<div className="timeline-container flex flex-col relative my-10">
|
||
3 years ago
|
{timeLineData.slice(0, 3).map((data, idx) => (
|
||
|
<TimeLineItem data={data} key={idx} />
|
||
|
))}
|
||
|
</div>
|
||
|
);
|
||
|
|
||
|
export default TimeLine;
|