Skip to content

Commit

Permalink
show user type and fix tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranshu1902 committed Dec 14, 2023
1 parent 46fb035 commit 1e84f3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CAREUI/display/RecordMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const RecordMeta = ({
let child = (
<div className="tooltip">
<span className="underline">{relativeTime(time)}</span>
<span className="tooltip-text tooltip-bottom flex -translate-x-1/2 gap-1 text-xs font-medium tracking-wider">
<span className="tooltip-text tooltip-left flex gap-1 text-xs font-medium tracking-wider">
{formatDateTime(time)}
{user && !inlineUser && (
<span className="flex items-center gap-1">
Expand Down
2 changes: 2 additions & 0 deletions src/CAREUI/display/Timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export const TimelineNode = (props: TimelineNodeProps) => {
{props.event.by && (
<span className="font-medium text-gray-900">
{formatName(props.event.by)}{" "}
{props.event.by.user_type &&
`(${props.event.by.user_type}) `}
</span>
)}
{props.titleSuffix
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Facility/Consultations/DailyRoundsList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function DailyRoundsList({ consultation }: Props) {
type: "created",
timestamp: item.taken_at?.toString() ?? "",
by: {
user_type: item.created_by?.user_type ?? "",
user_type: "",
first_name: "Virtual",
last_name: "Assistant",
username: "",
Expand Down

0 comments on commit 1e84f3c

Please sign in to comment.