|
|
@ -2,7 +2,7 @@ import React from "react"; |
|
|
|
|
|
|
|
|
|
|
|
const DistributedData = ({ items }) => { |
|
|
|
const DistributedData = ({ items }) => { |
|
|
|
return ( |
|
|
|
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) => ( |
|
|
|
{items.map((row, index) => ( |
|
|
|
<div |
|
|
|
<div |
|
|
|
className={`flex flex-row items-center justify-around w-full border-[#9DACD344] pb-3 ${ |
|
|
|
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" : "" |
|
|
|
index + 1 < row.length ? "border-l" : "" |
|
|
|
} ${item?.className || ""}`}
|
|
|
|
} ${item?.className || ""}`}
|
|
|
|
> |
|
|
|
> |
|
|
|
<p className="text-[#0F0543]">{item.name}</p> |
|
|
|
{item.name && <p className="text-[#0F0543]">{item.name}</p>} |
|
|
|
<span |
|
|
|
{item.number && ( |
|
|
|
className={` ${ |
|
|
|
<span |
|
|
|
item.remaining ? "text-[#E16524]" : "text-[#2483E1]" |
|
|
|
className={` ${ |
|
|
|
}`}
|
|
|
|
item.remaining ? "text-[#E16524]" : "text-[#2483E1]" |
|
|
|
> |
|
|
|
}`}
|
|
|
|
{item.number} |
|
|
|
> |
|
|
|
</span> |
|
|
|
{item.number} |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
)} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
))} |
|
|
|
))} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|