moves Library from menu to sidebar
This commit is contained in:
parent
9a37080769
commit
8e9aa9367d
2 changed files with 5 additions and 13 deletions
|
@ -165,14 +165,6 @@ const Header = (props: Props) => {
|
|||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||
{__('Channels')}
|
||||
</MenuItem>
|
||||
|
||||
{/* @if TARGET='app' */}
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.LIBRARY}`)}>
|
||||
<Icon aria-hidden icon={ICONS.LIBRARY} />
|
||||
{__('Library')}
|
||||
</MenuItem>
|
||||
{/* @endif */}
|
||||
|
||||
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.REWARDS}`)}>
|
||||
<Icon aria-hidden icon={ICONS.FEATURED} />
|
||||
{__('Rewards')}
|
||||
|
|
|
@ -112,6 +112,11 @@ function SideNavigation(props: Props) {
|
|||
{
|
||||
...buildLink(PAGES.DISCOVER, __('All Content'), ICONS.DISCOVER),
|
||||
},
|
||||
// @if TARGET='app'
|
||||
{
|
||||
...buildLink(PAGES.LIBRARY, __('Library'), ICONS.LIBRARY),
|
||||
},
|
||||
// @endif
|
||||
].map(linkProps => (
|
||||
<li key={linkProps.navigate}>
|
||||
<Button {...linkProps} className="navigation-link" activeClass="navigation-link--active" />
|
||||
|
@ -120,11 +125,6 @@ function SideNavigation(props: Props) {
|
|||
|
||||
{expanded &&
|
||||
[
|
||||
// @if TARGET='app'
|
||||
{
|
||||
...buildLink(PAGES.LIBRARY, __('Library'), ICONS.LIBRARY),
|
||||
},
|
||||
// @endif
|
||||
{
|
||||
...buildLink(PAGES.CHANNELS, __('Channels'), ICONS.CHANNEL),
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue