Skip to content

Commit

Permalink
Added Location name for Bed (ohcnetwork#2766)
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Jun 23, 2022
1 parent 64aedbb commit 4fcc0c7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Components/Facility/Consultations/Beds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,13 @@ const Beds = (props: BedsProps) => {
<div>
<h3 className="my-4 text-lg">Previous beds: </h3>
<div>
<div className="grid grid-cols-3 gap-1">
<div className="grid grid-cols-4 gap-1">
<div className="font-bold text-center bg-primary-500 text-white py-2">
Bed
</div>
<div className="font-bold text-center bg-primary-500 text-white py-2">
Location
</div>
<div className="font-bold text-center bg-primary-500 text-white py-2">
Start Date
</div>
Expand All @@ -169,10 +172,13 @@ const Beds = (props: BedsProps) => {
</div>
{consultationBeds.length > 0 ? (
consultationBeds.map((bed) => (
<div className="grid grid-cols-3 gap-1" key={bed?.id}>
<div className="grid grid-cols-4 gap-1" key={bed?.id}>
<div className="text-center bg-primary-100 py-2">
{bed?.bed_object?.name}
</div>
<div className="text-center bg-primary-100 py-2">
{bed?.bed_object?.location_object?.name}
</div>
<div className="text-center bg-primary-100 py-2">
{moment(bed?.start_date).format("MMMM Do YYYY, h:mm:ss a")}
</div>
Expand Down

0 comments on commit 4fcc0c7

Please sign in to comment.