fix watch
This commit is contained in:
parent
c9b7c37e2c
commit
201a1989d9
1 changed files with 8 additions and 6 deletions
14
js/app.js
14
js/app.js
|
@ -104,13 +104,15 @@ var App = React.createClass({
|
||||||
var mainContent = this.getMainContent();
|
var mainContent = this.getMainContent();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div id="window" className={ this.state.drawerOpen ? 'drawer-open' : 'drawer-closed' }>
|
this.state.viewingPage == 'watch' ?
|
||||||
<Drawer onCloseDrawer={this.closeDrawer} viewingPage={this.state.viewingPage} />
|
mainContent :
|
||||||
<div id="main-content">
|
<div id="window" className={ this.state.drawerOpen ? 'drawer-open' : 'drawer-closed' }>
|
||||||
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} />
|
<Drawer onCloseDrawer={this.closeDrawer} viewingPage={this.state.viewingPage} />
|
||||||
{mainContent}
|
<div id="main-content">
|
||||||
|
<Header onOpenDrawer={this.openDrawer} onSearch={this.onSearch} />
|
||||||
|
{mainContent}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
Loading…
Reference in a new issue