Skip to content

Commit

Permalink
fix(consultation): fixes ohcnetwork#7187 hide diagnoses card if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Feb 8, 2024
1 parent faeb462 commit 39a8c73
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Components/Facility/ConsultationDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,13 +401,16 @@ export const ConsultationDetails = (props: any) => {
</div>
</div>
</div>
<div className="col-span-1 mt-2 overflow-hidden rounded-lg bg-white shadow">
<div className="px-4 py-2">
<DiagnosesListAccordion
diagnoses={consultationData.diagnoses ?? []}
/>
</div>
</div>
{consultationData.diagnoses &&
consultationData.diagnoses.length > 0 && (
<div className="col-span-1 mt-2 overflow-hidden rounded-lg bg-white shadow">
<div className="px-4 py-2">
<DiagnosesListAccordion
diagnoses={consultationData.diagnoses ?? []}
/>
</div>
</div>
)}
<div className="mt-4 w-full border-b-2 border-gray-200">
<div className="overflow-x-auto sm:flex sm:items-baseline">
<div className="mt-4 sm:mt-0">
Expand Down

0 comments on commit 39a8c73

Please sign in to comment.