Redux #115

Merged
6ea86b96 merged 57 commits from redux into redux 2017-05-05 22:55:12 +02:00
Showing only changes of commit cee2f2a626 - Show all commits

View file

@ -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>
);
}
});