Redux #115
1 changed files with 10 additions and 14 deletions
|
@ -45,20 +45,16 @@ 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' }>
|
||||
<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} />
|
||||
<Router />
|
||||
</div>
|
||||
{modal == 'upgrade' && <UpgradeModal />}
|
||||
{modal == 'downloading' && <DownloadingModal />}
|
||||
{modal == 'error' && <ErrorModal />}
|
||||
</div>
|
||||
);
|
||||
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} />
|
||||
<Router />
|
||||
</div>
|
||||
{modal == 'upgrade' && <UpgradeModal />}
|
||||
{modal == 'downloading' && <DownloadingModal />}
|
||||
{modal == 'error' && <ErrorModal />}
|
||||
</div>
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue