Skip to content
Snippets Groups Projects
Commit aa19ed64 authored by chris's avatar chris
Browse files

cleanup

parent 58de6b1d
No related branches found
No related tags found
1 merge request!188Fix tool rerenders
/* eslint react/prop-types: 0 */ /* 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 { WaxContext } from 'wax-prosemirror-core';
import MenuButton from '../ui/buttons/MenuButton'; import MenuButton from '../ui/buttons/MenuButton';
...@@ -33,9 +33,7 @@ const Button = ({ view = {}, item }) => { ...@@ -33,9 +33,7 @@ const Button = ({ view = {}, item }) => {
disabled={isDisabled} disabled={isDisabled}
iconName={icon} iconName={icon}
label={label} label={label}
onMouseDown={(e, editorState, editorDispatch) => onMouseDown={e => handleMouseDown(e, view.state, view.dispatch)}
handleMouseDown(e, view.state, view.dispatch)
}
title={title} title={title}
/> />
), ),
......
...@@ -35,9 +35,7 @@ const CreateTable = ({ view = {}, item }) => { ...@@ -35,9 +35,7 @@ const CreateTable = ({ view = {}, item }) => {
const dropComponent = ( const dropComponent = (
<InsertTableTool <InsertTableTool
onGridSelect={(colRows, editorState, editorDispatch) => onGridSelect={colRows => handleSelect(colRows, view.state, view.dispatch)}
handleSelect(colRows, view.state, view.dispatch)
}
/> />
); );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment