From edd13682b17930c49f99091b8846eb3a876e8b31 Mon Sep 17 00:00:00 2001 From: ilia tapazukk Date: Mon, 13 Feb 2023 14:12:49 +0000 Subject: [PATCH] Hide comment editor --- src/components/Article/CommentsTree.tsx | 1 - src/components/_shared/CommentEditor/CommentEditor.tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/Article/CommentsTree.tsx b/src/components/Article/CommentsTree.tsx index 8c963a6b..669bda3c 100644 --- a/src/components/Article/CommentsTree.tsx +++ b/src/components/Article/CommentsTree.tsx @@ -15,7 +15,6 @@ import Button from '../_shared/Button' import { createStorage } from '@solid-primitives/storage' const ARTICLE_COMMENTS_PAGE_SIZE = 50 -const MAX_COMMENT_LEVEL = 6 type Props = { commentAuthors: Author[] diff --git a/src/components/_shared/CommentEditor/CommentEditor.tsx b/src/components/_shared/CommentEditor/CommentEditor.tsx index ddc30d37..ea07ece9 100644 --- a/src/components/_shared/CommentEditor/CommentEditor.tsx +++ b/src/components/_shared/CommentEditor/CommentEditor.tsx @@ -17,7 +17,6 @@ import { customKeymap } from '../../EditorNew/prosemirror/plugins/customKeymap' import { placeholder } from '../../EditorNew/prosemirror/plugins/placeholder' import { undo, redo, history } from 'prosemirror-history' import { useSession } from '../../../context/session' -import { showModal } from '../../../stores/ui' type Props = { placeholder?: string @@ -51,7 +50,7 @@ const CommentEditor = (props: Props) => { history(), customKeymap(), placeholder(props.placeholder), - keymap({ 'Mod-z': undo, 'Mod-y': redo }), + keymap({ 'Mod-z': undo, 'Mod-Shift-z': undo, 'Mod-Shift-y': redo, 'Mod-y': redo }), keymap(baseKeymap) ] })