diff options
| author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-01 19:54:05 -0400 |
|---|---|---|
| committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-01 19:54:05 -0400 |
| commit | 1cdb04707301bc51b3ed6dd1c15c79a7b989b7f7 (patch) | |
| tree | f7f3e73f83156b49b17f1611eb1e9467a6640397 /src/client/views/collections/CollectionVideoView.tsx | |
| parent | a687a9962c8952074177e52366b69dcce231a18e (diff) | |
Started refactoring props and collections
Diffstat (limited to 'src/client/views/collections/CollectionVideoView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionVideoView.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/views/collections/CollectionVideoView.tsx b/src/client/views/collections/CollectionVideoView.tsx index 470a853e3..1f0143d87 100644 --- a/src/client/views/collections/CollectionVideoView.tsx +++ b/src/client/views/collections/CollectionVideoView.tsx @@ -8,6 +8,7 @@ import { CollectionViewProps } from "./CollectionViewBase"; import React = require("react"); import { FieldId } from "../../../fields/Field"; import "./CollectionVideoView.scss" +import { CollectionFreeFormView } from "./CollectionFreeFormView"; @observer @@ -116,14 +117,10 @@ export class CollectionVideoView extends React.Component<CollectionViewProps> { } } - get collectionViewType(): CollectionViewType { return CollectionViewType.Freeform; } - get subView(): any { return CollectionView.SubView(this); } - - render() { trace(); return (<div className="collectionVideoView-cont" ref={this.mainCont} onContextMenu={this.specificContextMenu}> - {this.subView} + <CollectionFreeFormView {...CollectionView.SubViewProps(this)} /> {this.props.isSelected() ? this.uIButtons : (null)} </div>) } |
