1
0
Fork 0
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:
Fedor Katurov 2021-10-06 12:09:33 +07:00
parent 5585d566fd
commit 277f0fea43
19 changed files with 158 additions and 94 deletions

View file

@ -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 />