Skip to content

Commit

Permalink
chore: add tooltip to show full time on activity logs (#2235)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Sep 26, 2023
1 parent 1ad9987 commit 6d3bd78
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions web/components/issues/activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { useRouter } from "next/router";
import { ActivityIcon, ActivityMessage } from "components/core";
import { CommentCard } from "components/issues/comment";
// ui
import { Icon, Loader } from "components/ui";
import { Icon, Loader, Tooltip } from "components/ui";
// helpers
import { timeAgo } from "helpers/date-time.helper";
import { render24HourFormatTime, renderLongDateFormat, timeAgo } from "helpers/date-time.helper";
// types
import { IIssueActivity, IIssueComment } from "types";

Expand Down Expand Up @@ -120,9 +120,15 @@ export const IssueActivitySection: React.FC<Props> = ({
</Link>
)}{" "}
{message}{" "}
<span className="whitespace-nowrap">
{timeAgo(activityItem.created_at)}
</span>
<Tooltip
tooltipContent={`${renderLongDateFormat(
activityItem.created_at
)}, ${render24HourFormatTime(activityItem.created_at)}`}
>
<span className="whitespace-nowrap">
{timeAgo(activityItem.created_at)}
</span>
</Tooltip>
</div>
</div>
</div>
Expand Down

0 comments on commit 6d3bd78

Please # to comment.