From 2aed7c70aa46f7e6c7473a07a9fc0481858f51e0 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 23 Aug 2022 21:33:53 +0800 Subject: [PATCH] chore: update cancel editing button --- web/src/components/Editor/Editor.tsx | 13 ------------- web/src/components/MemoEditor.tsx | 11 +++++++---- web/src/less/memo-editor.less | 12 ++++++++++-- web/src/locales/en.json | 2 +- web/src/locales/zh.json | 2 +- 5 files changed, 19 insertions(+), 21 deletions(-) diff --git a/web/src/components/Editor/Editor.tsx b/web/src/components/Editor/Editor.tsx index 09f761c6..4055470a 100644 --- a/web/src/components/Editor/Editor.tsx +++ b/web/src/components/Editor/Editor.tsx @@ -18,10 +18,8 @@ interface EditorProps { placeholder: string; fullscreen: boolean; showConfirmBtn: boolean; - showCancelBtn: boolean; tools?: ReactNode; onConfirmBtnClick: (content: string) => void; - onCancelBtnClick: () => void; onContentChange: (content: string) => void; } @@ -33,9 +31,7 @@ const Editor = forwardRef((props: EditorProps, ref: React.ForwardedRef { - handleCancelBtnClickCallback(); - }, []); - return (