update History.js

master
mahdi 3 years ago
parent 09ca4b94ef
commit 87f049ba28
  1. 29
      src/components/Tabels/ReactTable5/History.js

@ -4,46 +4,29 @@ const History = ({ sentForms }) => {
return ( return (
<div className="flex flex-col relative mx-2"> <div className="flex flex-col relative mx-2">
{/* title */} {/* title */}
<span className="text-sm mb-4" style={{ color: "#65A9FF" }}> <span className="text-sm mb-4 text-[#65A9FF]">توضیحات قبلی:</span>
توضیحات قبلی:
</span>
{/* content */} {/* content */}
<div <div className="rounded-md bg-[#F8FBFF] border border-[#C8DEF9] cursor-pointer h-44 no-scrollbar overflow-y-scroll ">
style={{
backgroundColor: "#F8FBFF",
borderColor: "#C8DEF9",
}}
className="rounded-md border cursor-pointer h-44 no-scrollbar overflow-y-scroll "
>
{/* {sentForms.slice(0, 4).map((sentForm, index) => ( */} {/* {sentForms.slice(0, 4).map((sentForm, index) => ( */}
{sentForms.map((sentForm, index) => ( {sentForms.map((sentForm, index) => (
<div> <div>
{/* content */} {/* content */}
<div className="p-2"> <div className="p-2">
<p className="text-xs" style={{ color: "#00253A" }}> <p className="text-xs text-[#00253A]">{sentForm.title}</p>
{sentForm.title} <p className="text-xs text-left mt-2 text-[#6397B5]">
</p>
<p
className="text-xs text-left mt-2"
style={{ color: "#6397B5" }}
>
<span>تاریخ:</span> <span>تاریخ:</span>
{" "}
{sentForm.date} {sentForm.date}
</p> </p>
</div> </div>
{/* border */} {/* border */}
{Number(index) !== sentForms.length - 1 && ( {Number(index) !== sentForms.length - 1 && (
<div className="border" style={{ borderColor: "#C8DEF9" }}></div> <div className="border border-[#C8DEF9]"></div>
)} )}
</div> </div>
))} ))}
</div> </div>
{/* left border */} {/* left border */}
<div <div className="absolute bottom-[33%] bg-[#C8DEF9] left-0.5 transform -translate-x-1/2 -translate-y-1/2 w-1 h-14 rounded"></div>
style={{ bottom: "33%", backgroundColor: "#C8DEF9" }}
className="absolute left-0.5 transform -translate-x-1/2 -translate-y-1/2 w-1 h-14 rounded"
></div>
</div> </div>
); );
}; };

Loading…
Cancel
Save