1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00

removed node related from sagas and reducers

This commit is contained in:
Fedor Katurov 2021-11-21 17:15:44 +07:00
parent d202a8cb18
commit e8f8e3536d
7 changed files with 15 additions and 46 deletions

View file

@ -1,14 +1,12 @@
import { createReducer } from '~/utils/reducer';
import { IComment, IFile, INode } from '../types';
import { EMPTY_COMMENT, EMPTY_NODE } from './constants';
import { EMPTY_NODE } from './constants';
import { NODE_HANDLERS } from './handlers';
import { INodeRelated } from '~/redux/node/types';
export type INodeState = Readonly<{
editor: INode;
current: INode;
comments: IComment[];
related: INodeRelated;
lastSeenCurrent?: string;
comment_count: number;
current_cover_image?: IFile;
@ -31,10 +29,6 @@ const INITIAL_STATE: INodeState = {
current: { ...EMPTY_NODE },
comment_count: 0,
comments: [],
related: {
albums: {},
similar: [],
},
current_cover_image: undefined,
is_loading: false,