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,20 +45,16 @@ const App = React.createClass({
} = this.props } = this.props
const searchQuery = (currentPage == 'discover' && searchTerm ? searchTerm : '') const searchQuery = (currentPage == 'discover' && searchTerm ? searchTerm : '')
return ( return <div id="window" className={ drawerOpen ? 'drawer-open' : 'drawer-closed' }>
currentPage == 'watch' ? <Drawer onCloseDrawer={closeDrawer} viewingPage={currentPage} />
<Router /> : <div id="main-content" className={ headerLinks ? 'with-sub-nav' : 'no-sub-nav' }>
<div id="window" className={ drawerOpen ? 'drawer-open' : 'drawer-closed' }> <Header onOpenDrawer={openDrawer} initialQuery={searchQuery} onSearch={search} links={headerLinks} />
<Drawer onCloseDrawer={closeDrawer} viewingPage={currentPage} /> <Router />
<div id="main-content" className={ headerLinks ? 'with-sub-nav' : 'no-sub-nav' }> </div>
<Header onOpenDrawer={openDrawer} initialQuery={searchQuery} onSearch={search} links={headerLinks} /> {modal == 'upgrade' && <UpgradeModal />}
<Router /> {modal == 'downloading' && <DownloadingModal />}
</div> {modal == 'error' && <ErrorModal />}
{modal == 'upgrade' && <UpgradeModal />} </div>
{modal == 'downloading' && <DownloadingModal />}
{modal == 'error' && <ErrorModal />}
</div>
);
} }
}); });