From aa19ed6442035385835938dd52912d6ebfe96df6 Mon Sep 17 00:00:00 2001 From: chris <kokosias@yahoo.gr> Date: Tue, 13 Oct 2020 19:41:52 +0300 Subject: [PATCH] cleanup --- wax-prosemirror-components/src/components/Button.js | 6 ++---- .../src/components/tables/CreateTable.js | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/wax-prosemirror-components/src/components/Button.js b/wax-prosemirror-components/src/components/Button.js index 5c6ca68f4..fa2e0d6ef 100644 --- a/wax-prosemirror-components/src/components/Button.js +++ b/wax-prosemirror-components/src/components/Button.js @@ -1,6 +1,6 @@ /* eslint react/prop-types: 0 */ -import React, { useContext, useMemo, useState } from 'react'; +import React, { useContext, useMemo } from 'react'; import { WaxContext } from 'wax-prosemirror-core'; import MenuButton from '../ui/buttons/MenuButton'; @@ -33,9 +33,7 @@ const Button = ({ view = {}, item }) => { disabled={isDisabled} iconName={icon} label={label} - onMouseDown={(e, editorState, editorDispatch) => - handleMouseDown(e, view.state, view.dispatch) - } + onMouseDown={e => handleMouseDown(e, view.state, view.dispatch)} title={title} /> ), diff --git a/wax-prosemirror-components/src/components/tables/CreateTable.js b/wax-prosemirror-components/src/components/tables/CreateTable.js index ff64c3cea..b942bcdda 100644 --- a/wax-prosemirror-components/src/components/tables/CreateTable.js +++ b/wax-prosemirror-components/src/components/tables/CreateTable.js @@ -35,9 +35,7 @@ const CreateTable = ({ view = {}, item }) => { const dropComponent = ( <InsertTableTool - onGridSelect={(colRows, editorState, editorDispatch) => - handleSelect(colRows, view.state, view.dispatch) - } + onGridSelect={colRows => handleSelect(colRows, view.state, view.dispatch)} /> ); -- GitLab