mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
(nextjs) added page titles everywhere
This commit is contained in:
parent
3da5aba726
commit
2ebafbad52
8 changed files with 55 additions and 4 deletions
|
@ -2,6 +2,7 @@ import React, { VFC } from 'react';
|
|||
|
||||
import { observer } from 'mobx-react-lite';
|
||||
|
||||
import { PageTitle } from '~/components/common/PageTitle';
|
||||
import { useBoris } from '~/hooks/boris/useBoris';
|
||||
import { useNodeComments } from '~/hooks/comments/useNodeComments';
|
||||
import { useImageModal } from '~/hooks/navigation/useImageModal';
|
||||
|
@ -9,7 +10,7 @@ import { useLoadNode } from '~/hooks/node/useLoadNode';
|
|||
import { BorisLayout } from '~/layouts/BorisLayout';
|
||||
import { CommentContextProvider } from '~/utils/context/CommentContextProvider';
|
||||
import { NodeContextProvider } from '~/utils/context/NodeContextProvider';
|
||||
|
||||
import { getPageTitle } from '~/utils/ssr/getPageTitle';
|
||||
|
||||
const BorisPage: VFC = observer(() => {
|
||||
const { node, isLoading, update } = useLoadNode(696);
|
||||
|
@ -36,6 +37,8 @@ const BorisPage: VFC = observer(() => {
|
|||
onLoadMoreComments={onLoadMoreComments}
|
||||
onDeleteComment={onDeleteComment}
|
||||
>
|
||||
<PageTitle title={getPageTitle('Борис')} />
|
||||
|
||||
<BorisLayout
|
||||
title={title}
|
||||
setIsBetaTester={setIsBetaTester}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue