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 (