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