diff options
author | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-09 21:25:26 -0700 |
---|---|---|
committer | Lionel Han <47760119+IGoByJoe@users.noreply.github.com> | 2020-06-09 21:25:26 -0700 |
commit | a37ca793caefc203071f082490097b6231b0daf8 (patch) | |
tree | 31c5c12324e7c81c08c3a75c7e6258a767036e0d /src/mobile/MobileInterface.tsx | |
parent | bc80c711e7ab3044a0859c4b5d74e8e49cc5d077 (diff) |
fix some bugs in ImageUpload
Diffstat (limited to 'src/mobile/MobileInterface.tsx')
-rw-r--r-- | src/mobile/MobileInterface.tsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mobile/MobileInterface.tsx b/src/mobile/MobileInterface.tsx index c4b2ffbc1..73dcabac8 100644 --- a/src/mobile/MobileInterface.tsx +++ b/src/mobile/MobileInterface.tsx @@ -955,6 +955,7 @@ export class MobileInterface extends React.Component { @observable private audioState: any; @observable private activeToolbar: boolean = false; @observable private sidebarActive: boolean = false; + @observable private imageUploadActive: boolean = false; public _activeDoc: Doc = this.mainDoc; public _homeDoc: Doc = this.mainDoc; @@ -1723,14 +1724,14 @@ export class MobileInterface extends React.Component { ); } - @observable private imageUploadActive: boolean = false; - @action toggleUpload = () => this.imageUploadActive = !this.imageUploadActive + @action closeUpload = () => { this.imageUploadActive = false; + console.log("1dude"); } // toggleUpload = () => { @@ -1754,7 +1755,7 @@ export class MobileInterface extends React.Component { <div className="closeUpload" onClick={this.toggleUpload}> <FontAwesomeIcon icon="window-close" size={"lg"} /> </div> - <Uploader Document={workspaces} /> + <Uploader /> </div> ); } |