Skip to content

Commit

Permalink
add relative time for push event on feed page (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajku-dev authored Jan 1, 2025
1 parent 461bbd6 commit 24118eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/gh_events/GitHubEvent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ export default function GitHubEvent({ event }: { event?: IGitHubEvent }) {
<span className="hidden sm:inline">{event.repo.name}</span>
<span className="sm:hidden">
{event.repo.name.replace(`${env.NEXT_PUBLIC_GITHUB_ORG}/`, "")}
</span>
</span>{" "}
</Link>
<RelativeTime
className="inline text-sm text-secondary-400 underline"
time={event.created_at}
/>
</div>
);
body = (
Expand Down

0 comments on commit 24118eb

Please sign in to comment.