--- a/client/src/components/Note.js Tue Nov 13 16:46:15 2018 +0100
+++ b/client/src/components/Note.js Fri Nov 16 11:19:13 2018 +0100
@@ -25,7 +25,7 @@
this.props.onDelete();
}
- onClickButton = (e) => {
+ submitNote = () => {
const plain = this.editor.asPlain();
const raw = this.editor.asRaw();
@@ -56,7 +56,7 @@
return (
<div className="note-content w-100 pl-2 pt-2">
<SlateEditor editorRef={this.editorInst}
- onButtonClick={ this.onClickButton }
+ submitNote={ this.submitNote }
note={ this.props.note }
annotationCategories={ this.props.annotationCategories } />
</div>