soumaeda 2 лет назад
Родитель
Сommit
e7f68baaf9

+ 0 - 6
packages/editor/src/components/CodeMirrorEditor/Toolbar/TableButton.tsx

@@ -1,10 +1,4 @@
-import { useCallback, useEffect } from 'react';
-
-import { useHandsontableModal } from '../../../stores/use-handosontable';
-
-
 type TableButtonProps = {
-  editorKey: string,
   openTabelModal: () => void;
 }
 

+ 1 - 1
packages/editor/src/components/CodeMirrorEditor/Toolbar/Toolbar.tsx

@@ -32,7 +32,7 @@ export const Toolbar = memo((props: Props): JSX.Element => {
       <EmojiButton
         editorKey={editorKey}
       />
-      <TableButton editorKey={editorKey} openTabelModal={openTabelModal} />
+      <TableButton openTabelModal={openTabelModal} />
       <DiagramButton />
       <TemplateButton />
     </div>