Skip to content

Commit

Permalink
display updated date in PostCard #51
Browse files Browse the repository at this point in the history
  • Loading branch information
amirfakhrullah committed Jun 19, 2022
1 parent ed7f23e commit f96316d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const PostCard: React.FC<
{isOwner ? "By you" : "Anonymous"}
</p>
)}
<p className="text-gray-500 text-sm">{dateFormatter(created)} {updated && "• Edited"}</p>
<p className="text-gray-500 text-sm">{updated ? `Edited on ${dateFormatter(updated)}` : dateFormatter(created)}</p>

<div>
{tags?.map((tag, idx) => (
Expand Down

0 comments on commit f96316d

Please sign in to comment.