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

Tooltip added for treating docter skills in Patient details page #9254

Merged
Merged
Changes from 1 commit
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
11 changes: 9 additions & 2 deletions src/components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,17 @@ export const PatientHome = (props: {
.treating_physician_object,
)}
</p>
<p className="flex items-end text-xs font-normal leading-tight">
<span className="tooltip text-xs text-secondary-800 flex items-end font-normal leading-tight">
{!!skillsQuery.data?.results?.length &&
formatSkills(skillsQuery.data?.results)}
</p>
{(skillsQuery.data?.results?.length || 0) > 3 && (
<ul className="tooltip-text tooltip-bottom flex flex-col text-xs font-medium">
{skillsQuery.data?.results.map((skill) => (
<li>{skill.skill_object.name}</li>
))}
</ul>
)}
</span>
Mahendar0701 marked this conversation as resolved.
Show resolved Hide resolved
</div>
</div>
)}
Expand Down
Loading