@@ -29,41 +29,31 @@ export class PrimaryWindow extends Component {
2929 renderViewer ( ) {
3030 const {
3131 audioResources, isCollection,
32- isFetching, videoResources, view, windowId ,
32+ isFetching, videoResources, view,
3333 } = this . props ;
3434 if ( isCollection ) {
3535 return (
36- < SelectCollection
37- windowId = { windowId }
38- />
36+ < SelectCollection />
3937 ) ;
4038 }
4139 if ( isFetching === false ) {
4240 if ( view === 'gallery' ) {
4341 return (
44- < GalleryView
45- windowId = { windowId }
46- />
42+ < GalleryView />
4743 ) ;
4844 }
4945 if ( videoResources . length > 0 ) {
5046 return (
51- < VideoViewer
52- windowId = { windowId }
53- />
47+ < VideoViewer />
5448 ) ;
5549 }
5650 if ( audioResources . length > 0 ) {
5751 return (
58- < AudioViewer
59- windowId = { windowId }
60- />
52+ < AudioViewer />
6153 ) ;
6254 }
6355 return (
64- < WindowViewer
65- windowId = { windowId }
66- />
56+ < WindowViewer />
6757 ) ;
6858 }
6959 return null ;
@@ -74,13 +64,13 @@ export class PrimaryWindow extends Component {
7464 */
7565 render ( ) {
7666 const {
77- isCollectionDialogVisible, windowId , classes, children,
67+ isCollectionDialogVisible, classes, children,
7868 } = this . props ;
7969 return (
8070 < div className = { classNames ( ns ( 'primary-window' ) , classes . primaryWindow ) } >
81- < WindowSideBar windowId = { windowId } />
82- < CompanionArea windowId = { windowId } position = "left" />
83- { isCollectionDialogVisible && < CollectionDialog windowId = { windowId } /> }
71+ < WindowSideBar />
72+ < CompanionArea position = "left" />
73+ { isCollectionDialogVisible && < CollectionDialog /> }
8474 < Suspense fallback = { < div /> } >
8575 { children || this . renderViewer ( ) }
8676 </ Suspense >
@@ -98,7 +88,6 @@ PrimaryWindow.propTypes = {
9888 isFetching : PropTypes . bool ,
9989 videoResources : PropTypes . arrayOf ( PropTypes . object ) , // eslint-disable-line react/forbid-prop-types
10090 view : PropTypes . string ,
101- windowId : PropTypes . string . isRequired ,
10291} ;
10392
10493PrimaryWindow . defaultProps = {
0 commit comments