This commit is contained in:
Rainer Simon 2020-09-11 14:22:53 +02:00
parent 26ee0d7868
commit d4ab1aedb4
1 changed files with 2 additions and 2 deletions

View File

@ -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" />