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

displaying text

This commit is contained in:
Fedor Katurov 2019-10-17 14:44:13 +07:00
parent 57f90ee46b
commit 54ce8db210
8 changed files with 51 additions and 22 deletions

View file

@ -9,7 +9,7 @@ export interface IModalState {
}
const INITIAL_STATE: IModalState = {
is_shown: false,
is_shown: true,
dialog: DIALOGS.EDITOR_TEXT,
};

View file

@ -1,9 +1,9 @@
import { FC } from 'react';
import { IBlock, INode, ValueOf, IComment } from '../types';
import { INode, ValueOf, IComment } from '../types';
import { NodeImageSlideBlock } from '~/components/node/NodeImageSlideBlock';
import { NodeTextBlock } from '~/components/node/NodeTextBlock';
import { ImageEditor } from '~/components/editors/ImageEditor';
import { TextEditor } from '~/components/editors/TextEditor';
import { DIALOGS } from '../modal/constants';
const prefix = 'NODE.';
export const NODE_ACTIONS = {
@ -66,6 +66,10 @@ export const NODE_COMPONENTS: INodeComponents = {
[NODE_TYPES.IMAGE]: NodeImageSlideBlock,
};
export const NODE_INLINES: INodeComponents = {
[NODE_TYPES.TEXT]: NodeTextBlock,
};
export const EMPTY_COMMENT: IComment = {
id: null,
text: '',