Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Location name #2766

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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