Explorar o código

134432 remove wrap with handler

soumaeda %!s(int64=2) %!d(string=hai) anos
pai
achega
c917d46183

+ 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>
   );
   );