mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
only add new-comment hash to nodes with comments
This commit is contained in:
parent
032a246963
commit
71306d4c14
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ interface NotificationCommentProps {
|
|||
|
||||
const NotificationComment: FC<NotificationCommentProps> = ({ item, isNew }) => (
|
||||
<Anchor
|
||||
href={getCommentAnchor(item.url, item.itemId)}
|
||||
href={isNew ? getCommentAnchor(item.url, item.itemId) : item.url}
|
||||
className={styles.link}
|
||||
>
|
||||
<div className={classNames(styles.message, { [styles.new]: isNew })}>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue