Redux #115
1 changed files with 10 additions and 14 deletions
|
@ -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>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue