soumaeda 2 лет назад
Родитель
Сommit
4a0f6d2d52
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      packages/editor/src/components/CodeMirrorEditor/Toolbar/TableButton.tsx

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

@@ -12,12 +12,12 @@ export const TableButton = (props: Props): JSX.Element => {
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
   const { data: codeMirrorEditor } = useCodeMirrorEditorIsolated(editorKey);
   const { open: openTableModal } = useHandsontableModalForEditor();
   const { open: openTableModal } = useHandsontableModalForEditor();
   const editor = codeMirrorEditor?.view;
   const editor = codeMirrorEditor?.view;
-  const openTableModalHandler = useCallback(() => {
+  const onClickTableButton = useCallback(() => {
     openTableModal(editor);
     openTableModal(editor);
   }, [editor, openTableModal]);
   }, [editor, openTableModal]);
 
 
   return (
   return (
-    <button type="button" className="btn btn-toolbar-button" onClick={openTableModalHandler}>
+    <button type="button" className="btn btn-toolbar-button" onClick={onClickTableButton}>
       <span className="material-symbols-outlined fs-5">table_chart</span>
       <span className="material-symbols-outlined fs-5">table_chart</span>
     </button>
     </button>
   );
   );