Răsfoiți Sursa

134432 remove wrap with handler

soumaeda 2 ani în urmă
părinte
comite
c917d46183

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

@@ -4,11 +4,8 @@ type TableButtonProps = {
 
 export const TableButton = (props: TableButtonProps): JSX.Element => {
   const { onClickTableBtn } = props;
-  const openTableModalHandler = () => {
-    onClickTableBtn();
-  };
   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>
     </button>
   );