1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

added user context

This commit is contained in:
Fedor Katurov 2021-11-19 16:34:09 +07:00
parent f631f79654
commit e881512f63
13 changed files with 116 additions and 160 deletions

View file

@ -40,14 +40,11 @@ const NodePage: FC<Props> = ({
useScrollToTop([id, isLoadingComments]);
return (
<NodeProvider node={node} related={related} isUser={user.is_user} isLoading={isLoading}>
<NodeProvider node={node} related={related} isLoading={isLoading}>
<CommentProvider
node={node}
user={user}
comments={comments}
count={commentsCount}
lastSeenCurrent={lastSeenCurrent}
isLoadingNode={isLoading}
isLoadingComments={isLoadingComments}
onShowImageModal={onShowImageModal}
onLoadMoreComments={onLoadMoreComments}