mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
removed boris reducer
This commit is contained in:
parent
77af1ab05a
commit
120bf8954c
72 changed files with 225 additions and 298 deletions
|
@ -1,5 +1,5 @@
|
|||
import { INode } from '~/redux/types';
|
||||
import { EMPTY_NODE } from '~/redux/node/constants';
|
||||
import { EMPTY_NODE } from '~/constants/node';
|
||||
import React, { createContext, FC, useContext } from 'react';
|
||||
|
||||
export interface NodeContextProps {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { INodeRelated } from '~/redux/node/types';
|
||||
import { INodeRelated } from '~/types/node';
|
||||
import React, { createContext, FC, useContext } from 'react';
|
||||
|
||||
interface NodeRelatedProviderProps {
|
||||
|
|
|
@ -2,7 +2,7 @@ import { USER_ROLES } from '~/redux/auth/constants';
|
|||
import { ICommentGroup, INode } from '~/redux/types';
|
||||
import { IUser } from '~/redux/auth/types';
|
||||
import { path } from 'ramda';
|
||||
import { NODE_TYPES } from '~/redux/node/constants';
|
||||
import { NODE_TYPES } from '~/constants/node';
|
||||
|
||||
export const canEditNode = (node?: Partial<INode>, user?: Partial<IUser>): boolean =>
|
||||
path(['role'], user) === USER_ROLES.ADMIN ||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { FC, useEffect } from 'react';
|
||||
import { INode, ITag } from '~/redux/types';
|
||||
import { NodeRelatedContextProvider } from '~/utils/context/NodeRelatedContextProvider';
|
||||
import { INodeRelated } from '~/redux/node/types';
|
||||
import { INodeRelated } from '~/types/node';
|
||||
import { useGetNodeRelated } from '~/hooks/node/useGetNodeRelated';
|
||||
|
||||
interface NodeRelatedProviderProps {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue