mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
refactored hooks directory
This commit is contained in:
parent
efa3ba902d
commit
f76a5a4798
106 changed files with 122 additions and 144 deletions
|
@ -1,15 +1,15 @@
|
|||
import React, { useEffect, VFC } from 'react';
|
||||
import { useDispatch } from 'react-redux';
|
||||
import { useShallowSelect } from '~/utils/hooks/useShallowSelect';
|
||||
import { useShallowSelect } from '~/hooks/data/useShallowSelect';
|
||||
import { selectNode } from '~/redux/node/selectors';
|
||||
import { BorisLayout } from '~/layouts/BorisLayout';
|
||||
import { nodeLoadNode } from '~/redux/node/actions';
|
||||
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';
|
||||
import { useImageModal } from '~/hooks/navigation/useImageModal';
|
||||
import { useNodeComments } from '~/hooks/node/useNodeComments';
|
||||
import { useBoris } from '~/hooks/boris/useBoris';
|
||||
import { NodeContextProvider } from '~/utils/context/NodeContextProvider';
|
||||
import { useGetNode } from '~/utils/hooks/data/useGetNode';
|
||||
import { useGetNode } from '~/hooks/node/useGetNode';
|
||||
|
||||
const BorisPage: VFC = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import React, { FC } from 'react';
|
||||
import { FlowLayout } from '~/layouts/FlowLayout';
|
||||
import { useFlow } from '~/utils/hooks/flow/useFlow';
|
||||
import { useSearch } from '~/utils/hooks/search/useSearch';
|
||||
import { useUser } from '~/utils/hooks/user/userUser';
|
||||
import { useFlow } from '~/hooks/flow/useFlow';
|
||||
import { useSearch } from '~/hooks/search/useSearch';
|
||||
import { useUser } from '~/hooks/user/userUser';
|
||||
|
||||
interface Props {}
|
||||
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
import React, { FC } from 'react';
|
||||
import { NodeLayout } from '~/layouts/NodeLayout';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import { useScrollToTop } from '~/utils/hooks/useScrollToTop';
|
||||
import { useFullNode } from '~/utils/hooks/node/useFullNode';
|
||||
import { useImageModal } from '~/utils/hooks/useImageModal';
|
||||
import { useNodeComments } from '~/utils/hooks/node/useNodeComments';
|
||||
import { useUser } from '~/utils/hooks/user/userUser';
|
||||
import { useNodeTags } from '~/utils/hooks/node/useNodeTags';
|
||||
import { useScrollToTop } from '~/hooks/dom/useScrollToTop';
|
||||
import { useFullNode } from '~/hooks/node/useFullNode';
|
||||
import { useImageModal } from '~/hooks/navigation/useImageModal';
|
||||
import { useNodeComments } from '~/hooks/node/useNodeComments';
|
||||
import { useUser } from '~/hooks/user/userUser';
|
||||
import { useNodeTags } from '~/hooks/node/useNodeTags';
|
||||
import { NodeContextProvider } from '~/utils/context/NodeContextProvider';
|
||||
import { CommentContextProvider } from '~/utils/context/CommentContextProvider';
|
||||
import { TagsContextProvider } from '~/utils/context/TagsContextProvider';
|
||||
import { useNodePermissions } from '~/utils/hooks/node/useNodePermissions';
|
||||
import { useNodePermissions } from '~/hooks/node/useNodePermissions';
|
||||
import { NodeRelatedProvider } from '~/utils/providers/NodeRelatedProvider';
|
||||
import { useGetNode } from '~/utils/hooks/data/useGetNode';
|
||||
import { useGetNode } from '~/hooks/node/useGetNode';
|
||||
|
||||
type Props = RouteComponentProps<{ id: string }> & {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue