mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
refactor comment components
This commit is contained in:
parent
60da84aad9
commit
eea7095e65
42 changed files with 89 additions and 76 deletions
|
@ -1,6 +1,3 @@
|
|||
import { CommentEmbedBlock } from '~/components/comment/CommentEmbedBlock';
|
||||
import { CommentTextBlock } from '~/components/comment/CommentTextBlock';
|
||||
|
||||
export const COMMENT_BLOCK_TYPES = {
|
||||
TEXT: 'TEXT',
|
||||
MARK: 'MARK',
|
||||
|
@ -31,10 +28,4 @@ export type ICommentBlockProps = {
|
|||
block: ICommentBlock;
|
||||
};
|
||||
|
||||
export const COMMENT_BLOCK_RENDERERS = {
|
||||
[COMMENT_BLOCK_TYPES.TEXT]: CommentTextBlock,
|
||||
[COMMENT_BLOCK_TYPES.MARK]: CommentTextBlock,
|
||||
[COMMENT_BLOCK_TYPES.EMBED]: CommentEmbedBlock,
|
||||
};
|
||||
|
||||
export const NEW_COMMENT_CLASSNAME = 'newComment';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue