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

adding audio post and view it

This commit is contained in:
Fedor Katurov 2019-10-21 17:58:51 +07:00
parent 645ea8e29e
commit 88333e36b7
3 changed files with 45 additions and 0 deletions

View file

@ -2,6 +2,7 @@ import { FC } from 'react';
import { INode, ValueOf, IComment } from '../types';
import { NodeImageSlideBlock } from '~/components/node/NodeImageSlideBlock';
import { NodeTextBlock } from '~/components/node/NodeTextBlock';
import { NodeAudioBlock } from '~/components/node/NodeAudioBlock';
import { NodeVideoBlock } from '~/components/node/NodeVideoBlock';
import { ImageEditor } from '~/components/editors/ImageEditor';
import { TextEditor } from '~/components/editors/TextEditor';
@ -74,6 +75,7 @@ export const NODE_COMPONENTS: INodeComponents = {
export const NODE_INLINES: INodeComponents = {
[NODE_TYPES.TEXT]: NodeTextBlock,
[NODE_TYPES.AUDIO]: NodeAudioBlock,
};
export const EMPTY_COMMENT: IComment = {