This commit is contained in:
Tom Moor
2020-08-11 18:59:57 -07:00
parent 6e61df0729
commit 63371d8f5b
4 changed files with 10 additions and 11 deletions

View File

@@ -1,6 +1,4 @@
// @flow
import { observable } from "mobx";
import { observer } from "mobx-react";
import { lighten } from "polished";
import * as React from "react";
import { withRouter, type RouterHistory } from "react-router-dom";
@@ -28,10 +26,7 @@ type PropsWithRef = Props & {
history: RouterHistory,
};
@observer
class Editor extends React.Component<PropsWithRef> {
@observable redirectTo: ?string;
onUploadImage = async (file: File) => {
const result = await uploadFile(file, { documentId: this.props.id });
return result.url;