aboutsummaryrefslogtreecommitdiff
path: root/src/client/views
diff options
context:
space:
mode:
authorFawn <fangrui_tong@brown.edu>2019-06-14 15:30:22 -0400
committerFawn <fangrui_tong@brown.edu>2019-06-14 15:30:22 -0400
commit05f0f145269fffc5dfada98a5f20bbc8e204bd28 (patch)
tree50031541e9361cc68b17f4c44f450f265fae5150 /src/client/views
parentf54496c7aa930e385e77aaf37df8d51db733e3a2 (diff)
cleaned up more link code
Diffstat (limited to 'src/client/views')
-rw-r--r--src/client/views/nodes/LinkMenu.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/LinkMenu.tsx b/src/client/views/nodes/LinkMenu.tsx
index ebca54c92..2fcbd25fa 100644
--- a/src/client/views/nodes/LinkMenu.tsx
+++ b/src/client/views/nodes/LinkMenu.tsx
@@ -7,7 +7,7 @@ import './LinkMenu.scss';
import React = require("react");
import { Doc, DocListCast } from "../../../new_fields/Doc";
import { Id } from "../../../new_fields/FieldSymbols";
-import { LinkManager, LinkUtils } from "../../util/LinkManager";
+import { LinkManager } from "../../util/LinkManager";
interface Props {
docView: DocumentView;
@@ -22,7 +22,7 @@ export class LinkMenu extends React.Component<Props> {
renderGroup = (group: Doc[]): Array<JSX.Element> => {
let source = this.props.docView.Document;
return group.map(linkDoc => {
- let destination = LinkUtils.findOppositeAnchor(linkDoc, source);
+ let destination = LinkManager.Instance.findOppositeAnchor(linkDoc, source);
return <LinkBox key={destination[Id] + source[Id]} linkDoc={linkDoc} sourceDoc={source} destinationDoc={destination} showEditor={action(() => this._editingLink = linkDoc)} />;
});
}