add PoW event id tag

This commit is contained in:
smolgrrr 2023-10-28 00:51:22 +11:00
parent 1d1e0b7f43
commit 0103ac611f

View File

@ -83,7 +83,8 @@ const PostCard = ({ key, event, metadata, replyCount }: { key: string, event: Ev
} }
</div> </div>
<div className="flex items-center ml-auto"> <div className="flex items-center ml-auto">
<div className="text-xs font-semibold text-gray-500 mr-2">{timeAgo(event.created_at)}</div> <div className="text-xs text-gray-500">{event.id.match(/^0*([^\0]{2})/)?.[0] || 0}</div> &nbsp;
<div className="text-xs font-semibold text-gray-500 mr-2"> {timeAgo(event.created_at)}</div>
<FolderIcon className="h-5 w-5 mr-1 text-gray-500" /> <FolderIcon className="h-5 w-5 mr-1 text-gray-500" />
<span className="text-xs text-gray-500">{replyCount}</span> <span className="text-xs text-gray-500">{replyCount}</span>
</div> </div>