fix watch

This commit is contained in:
Jeremy Kauffman 2016-08-07 23:39:44 -04:00 committed by Alex Liebowitz
parent c9b7c37e2c
commit 201a1989d9

View file

@ -104,13 +104,15 @@ var App = React.createClass({
var mainContent = this.getMainContent();
return (
<div id="window" className={ this.state.drawerOpen ? 'drawer-open' : 'drawer-closed' }>
<Drawer onCloseDrawer={this.closeDrawer} viewingPage={this.state.viewingPage} />
<div id="main-content">
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} />
{mainContent}
this.state.viewingPage == 'watch' ?
mainContent :
<div id="window" className={ this.state.drawerOpen ? 'drawer-open' : 'drawer-closed' }>
<Drawer onCloseDrawer={this.closeDrawer} viewingPage={this.state.viewingPage} />
<div id="main-content">
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} />
{mainContent}
</div>
</div>
</div>
);
}
});