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:
parent
f631f79654
commit
e881512f63
13 changed files with 116 additions and 160 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue