client/src/components/Note.js
changeset 173 0e6703cd0968
parent 172 4b780ebbedc6
child 191 3f71ad81a5a9
--- 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>