diff options
| author | bob <bcz@cs.brown.edu> | 2019-02-05 11:22:10 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-02-05 11:22:10 -0500 |
| commit | 58c7742c18f82fe854784b083dfa723a8f256b72 (patch) | |
| tree | 7f5df647e16b225c81db90a18e67bdca5be067b1 /src/views/collections/CollectionSchemaView.tsx | |
| parent | 00a4534c535281aaecf4b47da64f1a0770e3bf68 (diff) | |
lots of reorganization
Diffstat (limited to 'src/views/collections/CollectionSchemaView.tsx')
| -rw-r--r-- | src/views/collections/CollectionSchemaView.tsx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/views/collections/CollectionSchemaView.tsx b/src/views/collections/CollectionSchemaView.tsx index f625b39c5..8c79c9189 100644 --- a/src/views/collections/CollectionSchemaView.tsx +++ b/src/views/collections/CollectionSchemaView.tsx @@ -1,4 +1,3 @@ -import { DocumentContentsView } from "../nodes/DocumentView"; import React = require("react") import ReactTable, { ReactTableDefaults, CellInfo, ComponentPropsGetterRC, ComponentPropsGetterR } from "react-table"; import { observer } from "mobx-react"; @@ -11,22 +10,23 @@ import SplitPane from "react-split-pane" import "./CollectionSchemaView.scss" import { ScrollBox } from "../../util/ScrollBox"; import { CollectionViewBase } from "./CollectionViewBase"; +import { DocumentView } from "../nodes/DocumentView"; @observer export class CollectionSchemaView extends CollectionViewBase { - public static LayoutString() { return '<CollectionSchemaView DocumentForCollection={Document} CollectionFieldKey={DataKey} ContainingDocumentView={ContainingDocumentContentsView}/>'; } + public static LayoutString() { return CollectionViewBase.LayoutString("CollectionSchemaView"); } @observable selectedIndex = 0; renderCell = (rowProps: CellInfo) => { - if (!this.props.DocumentContentsContainingCollection) { + if (!this.props.DocumentContentsOfCollection) { return <div></div> } let props: FieldViewProps = { doc: rowProps.value[0], fieldKey: rowProps.value[1], - documentViewContainer: this.props.DocumentContentsContainingCollection + documentViewContainer: this.props.DocumentContentsOfCollection } return ( <FieldView {...props} /> @@ -77,8 +77,8 @@ export class CollectionSchemaView extends CollectionViewBase { [KS.Title, KS.Data, KS.Author]) let content; if (this.selectedIndex != -1) { - content = (<DocumentContentsView Document={children[this.selectedIndex]} - ContainingDocumentContentsView={this.props.DocumentContentsContainingCollection} + content = (<DocumentView Document={children[this.selectedIndex]} + DocumentContentsView={this.props.DocumentContentsOfCollection} ContainingCollectionView={this} />) } else { content = <div /> |
