make comment time ago header a link

This commit is contained in:
keyan 2021-12-21 15:46:42 -06:00
parent 0dfda596b0
commit 7611e0a3c6
1 changed files with 3 additions and 1 deletions

View File

@ -94,7 +94,9 @@ export default function Comment ({
<a onClick={e => e.stopPropagation()}>@{item.user.name}<span className='text-boost font-weight-bold'>{op && ' OP'}</span></a> <a onClick={e => e.stopPropagation()}>@{item.user.name}<span className='text-boost font-weight-bold'>{op && ' OP'}</span></a>
</Link> </Link>
<span> </span> <span> </span>
<span>{timeSince(new Date(item.createdAt))}</span> <Link href={`/items/${item.id}`} passHref>
<a title={item.createdAt} className='text-reset'>{timeSince(new Date(item.createdAt))}</a>
</Link>
{includeParent && <Parent item={item} rootText={rootText} />} {includeParent && <Parent item={item} rootText={rootText} />}
{canEdit && {canEdit &&
<> <>