mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
added highlight for new comments
This commit is contained in:
parent
5585d566fd
commit
277f0fea43
19 changed files with 158 additions and 94 deletions
|
@ -36,10 +36,11 @@ const NodeLayout: FC<IProps> = memo(
|
|||
comment_count,
|
||||
is_loading_comments,
|
||||
related,
|
||||
lastSeenCurrent,
|
||||
} = useShallowSelect(selectNode);
|
||||
|
||||
useNodeCoverImage(current);
|
||||
useScrollToTop([id]);
|
||||
useScrollToTop([id, comments, is_loading_comments]);
|
||||
useLoadNode(id, is_loading);
|
||||
useOnNodeSeen(current);
|
||||
|
||||
|
@ -65,6 +66,7 @@ const NodeLayout: FC<IProps> = memo(
|
|||
related={related}
|
||||
isLoadingComments={is_loading_comments}
|
||||
isLoading={is_loading}
|
||||
lastSeenCurrent={lastSeenCurrent}
|
||||
/>
|
||||
|
||||
<Footer />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue