Skip to content

Commit

Permalink
Feat(twemoji): Show post exact date
Browse files Browse the repository at this point in the history
  • Loading branch information
yeicobF committed May 4, 2023
1 parent 406bbbe commit 2fa626d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ export const PostView = (props: PostWithUser) => {
</Link>

<Link href={`/post/${post.id}`}>
<span className="font-thin">{${dayjs(
post.createdAt
).fromNow()}`}</span>
<span
className="font-thin"
title={dayjs(post.createdAt).toString()}
>{${dayjs(post.createdAt).fromNow()}`}</span>
</Link>
</div>
<span className="text-xl">{post.content}</span>
Expand Down

0 comments on commit 2fa626d

Please sign in to comment.