Cleanup
This commit is contained in:
parent
26ee0d7868
commit
d4ab1aedb4
|
@ -19,8 +19,6 @@ const bounds = elem => {
|
||||||
* with CTRL+Z.
|
* with CTRL+Z.
|
||||||
*/
|
*/
|
||||||
const Editor = props => {
|
const Editor = props => {
|
||||||
|
|
||||||
const widgets = props.widgets.map(fn => <DOMWidget widget={fn} />);
|
|
||||||
|
|
||||||
// The current state of the edited annotation vs. original
|
// The current state of the edited annotation vs. original
|
||||||
const [ currentAnnotation, setCurrentAnnotation ] = useState();
|
const [ currentAnnotation, setCurrentAnnotation ] = useState();
|
||||||
|
@ -141,6 +139,8 @@ const Editor = props => {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const widgets = props.widget ? props.widgets.map(fn => <DOMWidget widget={fn} />) : [];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={element} className="r6o-editor">
|
<div ref={element} className="r6o-editor">
|
||||||
<div className="arrow" />
|
<div className="arrow" />
|
||||||
|
|
Loading…
Reference in New Issue