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

node no comments

This commit is contained in:
muerwre 2019-08-25 21:56:32 +07:00
parent b4d7bd2c8a
commit 96bdbb0e04
11 changed files with 103 additions and 61 deletions

View file

@ -4,12 +4,15 @@ import { EMPTY_NODE } from './constants';
import { NODE_HANDLERS } from './handlers';
export type INodeState = Readonly<{
is_loading: boolean;
editor: INode;
current: Partial<INode>;
current: INode;
comments: IComment[];
error: string;
errors: Record<string, string>;
is_loading: boolean;
is_loading_comments: boolean;
}>;
const INITIAL_STATE: INodeState = {
@ -19,9 +22,10 @@ const INITIAL_STATE: INodeState = {
blocks: [],
files: [],
},
current: {},
current: { ...EMPTY_NODE },
comments: [],
is_loading: false,
is_loading_comments: false,
error: null,
errors: {},
};