From cb94d6a9c846502ba208cd7f3a68d93774146c5d Mon Sep 17 00:00:00 2001
From: Hannah Chow <hannah_chow@brown.edu>
Date: Sat, 2 Mar 2019 21:47:05 -0500
Subject: flyout working

---
 src/client/views/nodes/LinkMenu.tsx | 28 ++++++++++++----------------
 1 file changed, 12 insertions(+), 16 deletions(-)

(limited to 'src/client/views/nodes/LinkMenu.tsx')

diff --git a/src/client/views/nodes/LinkMenu.tsx b/src/client/views/nodes/LinkMenu.tsx
index 2394852b2..9e01de4cd 100644
--- a/src/client/views/nodes/LinkMenu.tsx
+++ b/src/client/views/nodes/LinkMenu.tsx
@@ -8,28 +8,24 @@ import { NumberField } from "../../../fields/NumberField";
 import { props } from "bluebird";
 import { DragManager } from "../../util/DragManager";
 import { DocumentView } from "./DocumentView";
+import { Document } from "../../../fields/Document";
 
+interface Props {
+    docView: DocumentView | undefined;
+}
 
 @observer
-export class LinkMenu extends React.Component {
-    static Instance: LinkMenu
-    @observable private _docView: DocumentView;
-    @observable private _hidden = true;
-
-    constructor(docView: DocumentView) {
-        super(docView);
-        this._docView = docView;
-        LinkMenu.Instance = this;
-    }
+export class LinkMenu extends React.Component<Props> {
+    // @observable private _hidden = true;
 
-    @computed
-    public get Hidden() { return this._hidden; }
-    public set Hidden(value: boolean) { this._hidden = value; }
+    // @computed
+    // public get Hidden() { return this._hidden; }
+    // public set Hidden(value: boolean) { this._hidden = value; }
 
     render() {
-        if (this.Hidden) {
-            return (null);
-        }
+        // if (this.Hidden) {
+        //     return (null);
+        // }
 
         return (
             <div id="menu-container">
-- 
cgit v1.2.3-70-g09d2

