From a37ca793caefc203071f082490097b6231b0daf8 Mon Sep 17 00:00:00 2001
From: Lionel Han <47760119+IGoByJoe@users.noreply.github.com>
Date: Tue, 9 Jun 2020 21:25:26 -0700
Subject: fix some bugs in ImageUpload

---
 src/mobile/MobileInterface.tsx | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'src/mobile/MobileInterface.tsx')

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>
         );
     }
-- 
cgit v1.2.3-70-g09d2

