Skip to content

Commit

Permalink
add better styling
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 committed Apr 27, 2024
1 parent 6500fc6 commit a3fc013
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions src/Components/Facility/Consultations/Beds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,30 @@ const Beds = (props: BedsProps) => {
<div>
<h3 className="my-4 text-lg">Previous beds: </h3>
<div className="overflow-hidden rounded-xl">
<div className="grid grid-cols-4 gap-px">
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Bed
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Location
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Start Date
{consultationBeds.length > 0 ? (
<div className="grid grid-cols-4 gap-px">
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Bed
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Location
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
Start Date
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
End Date
</div>
</div>
<div className="bg-primary-500 py-2 text-center font-bold text-white">
End Date
) : (
<div className="flex w-full justify-center border-t border-gray-200 bg-white p-5 text-center text-2xl font-bold text-gray-500">
<span className="flex justify-center rounded-lg bg-white p-3 text-gray-700 ">
No beds allocated yet
</span>
</div>
</div>
{consultationBeds.length > 0 ? (
)}

{consultationBeds.length > 0 &&
consultationBeds.map((bed) => (
<div className="grid grid-cols-4 gap-px" key={bed?.id}>
<div className="break-words bg-primary-100 p-2 text-center">
Expand Down Expand Up @@ -292,12 +301,7 @@ const Beds = (props: BedsProps) => {
</div>
)}
</div>
))
) : (
<div className="bg-primary-100 py-2 text-center">
No beds allocated yet
</div>
)}
))}
</div>
</div>
</div>
Expand Down

0 comments on commit a3fc013

Please sign in to comment.