Redux #115
1 changed files with 10 additions and 14 deletions
|
@ -45,10 +45,7 @@ const App = React.createClass({
|
|||
} = this.props
|
||||
const searchQuery = (currentPage == 'discover' && searchTerm ? searchTerm : '')
|
||||
|
||||
return (
|
||||
currentPage == 'watch' ?
|
||||
<Router /> :
|
||||
<div id="window" className={ drawerOpen ? 'drawer-open' : 'drawer-closed' }>
|
||||
return <div id="window" className={ drawerOpen ? 'drawer-open' : 'drawer-closed' }>
|
||||
<Drawer onCloseDrawer={closeDrawer} viewingPage={currentPage} />
|
||||
<div id="main-content" className={ headerLinks ? 'with-sub-nav' : 'no-sub-nav' }>
|
||||
<Header onOpenDrawer={openDrawer} initialQuery={searchQuery} onSearch={search} links={headerLinks} />
|
||||
|
@ -58,7 +55,6 @@ const App = React.createClass({
|
|||
{modal == 'downloading' && <DownloadingModal />}
|
||||
{modal == 'error' && <ErrorModal />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue