Commit fb8828e2 authored by Jure's avatar Jure

Adjust naming of uploadFile.

parent 5d003817
......@@ -9,6 +9,7 @@ class Writer extends React.Component {
constructor (props) {
super(props)
this.save = this.save.bind(this)
this.uploadFile = this.uploadFile.bind(this)
}
save (content, callback) {
......@@ -20,9 +21,8 @@ class Writer extends React.Component {
callback(null, content)
}
fileUpload (file, callback) {
console.log(this.props.fileUpload)
return callback(null, null)
uploadFile (file, callback) {
return this.props.uploadFile(file, callback)
}
render () {
......@@ -40,7 +40,7 @@ class Writer extends React.Component {
editor = <LensWriter
content={content}
onSave={this.save}
onFileUpload={this.fileUpload}
onUploadFile={this.uploadFile}
/>
} else {
editor = <p>Loading</p>
......@@ -55,7 +55,7 @@ class Writer extends React.Component {
Writer.propTypes = {
fragment: React.PropTypes.object,
save: React.PropTypes.func,
fileUpload: React.PropTypes.func
uploadFile: React.PropTypes.func
}
export default Writer
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment