Skip to content

Commit

Permalink
Fixed bed number coming up two time in patients page. (#6526)
Browse files Browse the repository at this point in the history
* stop displaying bed name two times

* resolve tooltip
  • Loading branch information
AshrafMd-1 authored Oct 31, 2023
1 parent 6746359 commit 343ff7e
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions src/Components/Patient/ManagePatients.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,27 +519,23 @@ export const PatientManager = () => {
<div className="h-20 w-full min-w-[5rem] rounded-lg border border-gray-300 bg-gray-50 md:w-20">
{patient?.last_consultation?.current_bed &&
patient?.last_consultation?.discharge_date === null ? (
<div className="flex h-full flex-col items-center justify-center">
<span className="tooltip w-full truncate px-1 text-center text-sm text-gray-900">
<div className="tooltip flex h-full flex-col items-center justify-center">
<span className="w-full truncate px-1 text-center text-sm text-gray-900">
{
patient?.last_consultation?.current_bed?.bed_object
?.location_object?.name
}
<span className="tooltip-text tooltip-bottom">
{
patient?.last_consultation?.current_bed?.bed_object
?.location_object?.name
}
</span>
</span>
<span className="w-full truncate px-1 text-center text-base font-bold">
{patient?.last_consultation?.current_bed?.bed_object.name}
<span className="tooltip-text tooltip-bottom">
{
patient?.last_consultation?.current_bed?.bed_object
?.name
}
</span>
{patient?.last_consultation?.current_bed?.bed_object?.name}
</span>
<span className="tooltip-text tooltip-bottom text-sm font-medium lg:-translate-y-1/2">
{
patient?.last_consultation?.current_bed?.bed_object
?.location_object?.name
}
<br />
{patient?.last_consultation?.current_bed?.bed_object?.name}
</span>
</div>
) : patient.last_consultation?.suggestion === "DC" ? (
Expand Down

0 comments on commit 343ff7e

Please sign in to comment.