make comment time ago header a link
This commit is contained in:
parent
0dfda596b0
commit
7611e0a3c6
|
@ -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>
|
||||
</Link>
|
||||
<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} />}
|
||||
{canEdit &&
|
||||
<>
|
||||
|
|
Loading…
Reference in New Issue