diff options
author | bob <bcz@cs.brown.edu> | 2019-02-05 11:33:30 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-02-05 11:33:30 -0500 |
commit | 46a3ba510a02464b27b806af8fd1131dbc3da242 (patch) | |
tree | f2f247d04107062243fd36a1f59867ab84280014 /src/views/nodes/ImageBox.tsx | |
parent | 58c7742c18f82fe854784b083dfa723a8f256b72 (diff) |
more reorg
Diffstat (limited to 'src/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/views/nodes/ImageBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/nodes/ImageBox.tsx b/src/views/nodes/ImageBox.tsx index a4254ce39..cced95c89 100644 --- a/src/views/nodes/ImageBox.tsx +++ b/src/views/nodes/ImageBox.tsx @@ -5,7 +5,7 @@ import { SelectionManager } from "../../util/SelectionManager"; import "./ImageBox.scss"; import React = require("react") import { ImageField } from '../../fields/ImageField'; -import { FieldViewProps } from './FieldView'; +import { FieldViewProps, FieldView } from './FieldView'; import { CollectionFreeFormDocumentView } from './CollectionFreeFormDocumentView'; interface ImageBoxState { @@ -15,7 +15,7 @@ interface ImageBoxState { export class ImageBox extends React.Component<FieldViewProps, ImageBoxState> { - public static LayoutString() { return "<ImageBox doc={Document} documentViewContainer={DocumentContentsView} fieldKey={DataKey} />"; } + public static LayoutString() { return FieldView.LayoutString("ImageBox"); } private _ref: React.RefObject<HTMLDivElement>; private _downX: number = 0; private _downY: number = 0; |