|
|
|
@ -2,7 +2,7 @@ import React from "react"; |
|
|
|
|
|
|
|
|
|
const DistributedData = ({ items }) => { |
|
|
|
|
return ( |
|
|
|
|
<div className="mt-20 flex flex-col items-center gap-y-4 max-w-[400px] mx-auto bg-white shadow-sm rounded-lg pt-3"> |
|
|
|
|
<div className="mt-20 flex flex-col items-center gap-y-4 max-w-[550px] mx-auto bg-white shadow-sm rounded-lg pt-3"> |
|
|
|
|
{items.map((row, index) => ( |
|
|
|
|
<div |
|
|
|
|
className={`flex flex-row items-center justify-around w-full border-[#9DACD344] pb-3 ${ |
|
|
|
@ -16,14 +16,16 @@ const DistributedData = ({ items }) => { |
|
|
|
|
index + 1 < row.length ? "border-l" : "" |
|
|
|
|
} ${item?.className || ""}`}
|
|
|
|
|
> |
|
|
|
|
<p className="text-[#0F0543]">{item.name}</p> |
|
|
|
|
<span |
|
|
|
|
className={` ${ |
|
|
|
|
item.remaining ? "text-[#E16524]" : "text-[#2483E1]" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
{item.number} |
|
|
|
|
</span> |
|
|
|
|
{item.name && <p className="text-[#0F0543]">{item.name}</p>} |
|
|
|
|
{item.number && ( |
|
|
|
|
<span |
|
|
|
|
className={` ${ |
|
|
|
|
item.remaining ? "text-[#E16524]" : "text-[#2483E1]" |
|
|
|
|
}`}
|
|
|
|
|
> |
|
|
|
|
{item.number} |
|
|
|
|
</span> |
|
|
|
|
)} |
|
|
|
|
</div> |
|
|
|
|
))} |
|
|
|
|
</div> |
|
|
|
|