|
|
@ -1,3 +1,4 @@ |
|
|
|
|
|
|
|
import CircleInCircle from "../CircleInCircle"; |
|
|
|
import "./index.scss"; |
|
|
|
import "./index.scss"; |
|
|
|
|
|
|
|
|
|
|
|
const TimeLineItem = ({ data }) => ( |
|
|
|
const TimeLineItem = ({ data }) => ( |
|
|
@ -10,9 +11,16 @@ const TimeLineItem = ({ data }) => ( |
|
|
|
style={{ maxWidth: "100%", width: "400px" }} |
|
|
|
style={{ maxWidth: "100%", width: "400px" }} |
|
|
|
> |
|
|
|
> |
|
|
|
{/* top --> time & date */} |
|
|
|
{/* top --> time & date */} |
|
|
|
<div className="flex flex-row items-center w-full p-3 justify-between"> |
|
|
|
<div |
|
|
|
|
|
|
|
className={`w-full p-3 flex items-center justify-between ${ |
|
|
|
|
|
|
|
data.active === false ? "flex-row-reverse" : "flex-row" |
|
|
|
|
|
|
|
}`}
|
|
|
|
|
|
|
|
> |
|
|
|
{data.active && ( |
|
|
|
{data.active && ( |
|
|
|
<div className="bg-blue-500 border-4 border-[#D4E6FF99] w-4 h-4 rounded-full"></div> |
|
|
|
<CircleInCircle |
|
|
|
|
|
|
|
parentClassName={"bg-blue-500"} |
|
|
|
|
|
|
|
childClassName={"bg-[#D4E6FF99]"} |
|
|
|
|
|
|
|
/> |
|
|
|
)} |
|
|
|
)} |
|
|
|
<div className="flex flex-row-reverse self-end"> |
|
|
|
<div className="flex flex-row-reverse self-end"> |
|
|
|
<time className="text-xs text-[#0A7C9F]">{data.date}</time> |
|
|
|
<time className="text-xs text-[#0A7C9F]">{data.date}</time> |
|
|
|