Просмотр исходного кода

134432 remove wrap with handler

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

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

@@ -4,11 +4,8 @@ type TableButtonProps = {
 
 
 export const TableButton = (props: TableButtonProps): JSX.Element => {
 export const TableButton = (props: TableButtonProps): JSX.Element => {
   const { onClickTableBtn } = props;
   const { onClickTableBtn } = props;
-  const openTableModalHandler = () => {
-    onClickTableBtn();
-  };
   return (
   return (
-    <button type="button" className="btn btn-toolbar-button" onClick={openTableModalHandler}>
+    <button type="button" className="btn btn-toolbar-button" onClick={onClickTableBtn}>
       <span className="material-symbols-outlined fs-5">table_chart</span>
       <span className="material-symbols-outlined fs-5">table_chart</span>
     </button>
     </button>
   );
   );