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

@ -19,7 +19,7 @@ import { useNodeContext } from '~/utils/providers/NodeProvider';
type IProps = {};
const NodeLayout: FC<IProps> = () => {
const { node, isUser, isLoading } = useNodeContext();
const { node, isLoading } = useNodeContext();
useNodeCoverImage(node);
@ -37,7 +37,7 @@ const NodeLayout: FC<IProps> = () => {
<NodePanel node={node} isLoading={isLoading} />
</div>
<NodeBottomBlock isUser={isUser} commentsOrder="DESC" />
<NodeBottomBlock commentsOrder="DESC" />
<Footer />
</Card>