mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
renamed providers to context
This commit is contained in:
parent
0dc5ae99a3
commit
7284ed7301
14 changed files with 54 additions and 36 deletions
|
@ -4,7 +4,7 @@ import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
|||
import { selectNode } from '~/redux/node/selectors';
|
||||
import { BorisLayout } from '~/layouts/BorisLayout';
|
||||
import { nodeLoadNode } from '~/redux/node/actions';
|
||||
import { CommentProvider } from '~/utils/providers/CommentProvider';
|
||||
import { CommentContextProvider } from '~/utils/context/CommentContextProvider';
|
||||
import { useImageModal } from '~/utils/hooks/useImageModal';
|
||||
import { useNodeComments } from '~/utils/hooks/node/useNodeComments';
|
||||
import { useBoris } from '~/utils/hooks/boris/useBoris';
|
||||
|
@ -28,7 +28,7 @@ const BorisPage: VFC = () => {
|
|||
}, [dispatch, node.is_loading]);
|
||||
|
||||
return (
|
||||
<CommentProvider
|
||||
<CommentContextProvider
|
||||
comments={comments}
|
||||
count={count}
|
||||
isLoading={isLoadingComments}
|
||||
|
@ -42,7 +42,7 @@ const BorisPage: VFC = () => {
|
|||
isTester={isTester}
|
||||
stats={stats}
|
||||
/>
|
||||
</CommentProvider>
|
||||
</CommentContextProvider>
|
||||
);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue