From 578753c1f6c9d7bfd05015080c4cc2f9494e48cd Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 2 May 2022 15:31:03 +0800 Subject: [PATCH] refactor: remove unused code --- packages/client/src/tiptap/menubar.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/client/src/tiptap/menubar.tsx b/packages/client/src/tiptap/menubar.tsx index ecb8c9b2..86c6c989 100644 --- a/packages/client/src/tiptap/menubar.tsx +++ b/packages/client/src/tiptap/menubar.tsx @@ -43,11 +43,7 @@ import { Iframe } from './menus/iframe'; import { Table } from './menus/table'; import { Mind } from './menus/mind'; -import useTilg from 'tilg'; - const _MenuBar: React.FC<{ editor: any }> = ({ editor }) => { - useTilg(); - if (!editor) return null; return (