aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/KeyValueBox.tsx
diff options
context:
space:
mode:
authorHannah Chow <hannah_chow@brown.edu>2019-03-10 22:47:11 -0400
committerHannah Chow <hannah_chow@brown.edu>2019-03-10 22:47:11 -0400
commitce0d749c291609b7acca6db490bfcc131cf3996d (patch)
treeb7c6e6c1dbfb1424790d496d6f1e1520bfac7798 /src/client/views/nodes/KeyValueBox.tsx
parent018d92a8a49e7e1a3a41ae87e24a9a8ba60619d6 (diff)
parent845a7989a6ff66b1c922d1f7f69c7560b6783dd8 (diff)
mergging
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index e8ebd50be..ac8c949a9 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -1,37 +1,18 @@
-import { IReactionDisposer } from 'mobx';
import { observer } from "mobx-react";
-import { EditorView } from 'prosemirror-view';
import 'react-image-lightbox/style.css'; // This only needs to be imported once in your app
import { Document } from '../../../fields/Document';
-import { Opt, FieldWaiting } from '../../../fields/Field';
+import { FieldWaiting } from '../../../fields/Field';
import { KeyStore } from '../../../fields/KeyStore';
import { FieldView, FieldViewProps } from './FieldView';
-import { KeyValuePair } from "./KeyValuePair";
import "./KeyValueBox.scss";
+import { KeyValuePair } from "./KeyValuePair";
import React = require("react")
@observer
export class KeyValueBox extends React.Component<FieldViewProps> {
public static LayoutString(fieldStr: string = "DataKey") { return FieldView.LayoutString(KeyValueBox, fieldStr) }
- private _ref: React.RefObject<HTMLDivElement>;
- private _editorView: Opt<EditorView>;
- private _reactionDisposer: Opt<IReactionDisposer>;
-
-
- constructor(props: FieldViewProps) {
- super(props);
-
- this._ref = React.createRef();
- }
-
-
-
- shouldComponentUpdate() {
- return false;
- }
-
onPointerDown = (e: React.PointerEvent): void => {
if (e.buttons === 1 && this.props.isSelected()) {