diff options
| author | bob <bcz@cs.brown.edu> | 2019-03-11 13:38:34 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-03-11 13:38:34 -0400 |
| commit | 501a74c77bda9256f449c7009194a6964819841a (patch) | |
| tree | 56f4d331beaf2012c451a69d689b07d4d9cbb3e4 | |
| parent | 5969a77e913372424f9717a0f377b2f91c7dc5a6 (diff) | |
cleanup
| -rw-r--r-- | src/client/views/collections/CollectionFreeFormView.tsx | 9 | ||||
| -rw-r--r-- | src/client/views/collections/CollectionViewBase.tsx | 1 |
2 files changed, 3 insertions, 7 deletions
diff --git a/src/client/views/collections/CollectionFreeFormView.tsx b/src/client/views/collections/CollectionFreeFormView.tsx index 37b3d6adb..07f022382 100644 --- a/src/client/views/collections/CollectionFreeFormView.tsx +++ b/src/client/views/collections/CollectionFreeFormView.tsx @@ -1,4 +1,4 @@ -import { action, computed, observable, reaction, trace } from "mobx"; +import { action, computed, observable } from "mobx"; import { observer } from "mobx-react"; import { Document } from "../../../fields/Document"; import { FieldWaiting } from "../../../fields/Field"; @@ -10,9 +10,9 @@ import { DragManager } from "../../util/DragManager"; import { Transform } from "../../util/Transform"; import { undoBatch } from "../../util/UndoManager"; import { CollectionDockingView } from "../collections/CollectionDockingView"; +import { CollectionPDFView } from "../collections/CollectionPDFView"; import { CollectionSchemaView } from "../collections/CollectionSchemaView"; import { CollectionView } from "../collections/CollectionView"; -import { CollectionPDFView } from "../collections/CollectionPDFView"; import { InkingCanvas } from "../InkingCanvas"; import { CollectionFreeFormDocumentView } from "../nodes/CollectionFreeFormDocumentView"; import { DocumentView } from "../nodes/DocumentView"; @@ -25,9 +25,6 @@ import "./CollectionFreeFormView.scss"; import { COLLECTION_BORDER_WIDTH } from "./CollectionView"; import { CollectionViewBase } from "./CollectionViewBase"; import React = require("react"); -import { Utils } from "../../../Utils"; -import { SelectionManager } from "../../util/SelectionManager"; -import anymatch = require("anymatch"); const JsxParser = require('react-jsx-parser').default;//TODO Why does this need to be imported like this? @observer @@ -370,7 +367,7 @@ export class CollectionFreeFormView extends CollectionViewBase { {this.backgroundView} <InkingCanvas getScreenTransform={this.getTransform} Document={this.props.Document} /> {cursor} - {React.Children.map(this.views, (child) => child)} + {this.views} {marquee} </div> {this.overlayView} diff --git a/src/client/views/collections/CollectionViewBase.tsx b/src/client/views/collections/CollectionViewBase.tsx index 38271e7bf..59fa61800 100644 --- a/src/client/views/collections/CollectionViewBase.tsx +++ b/src/client/views/collections/CollectionViewBase.tsx @@ -11,7 +11,6 @@ import { Documents, DocumentOptions } from "../../documents/Documents"; import { Key } from "../../../fields/Key"; import { Transform } from "../../util/Transform"; import { CollectionView } from "./CollectionView"; -import * as request from "request"; export interface CollectionViewProps { fieldKey: Key; |
