mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-02 18:25:12 +00:00
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} />
|
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||||
{__('Channels')}
|
{__('Channels')}
|
||||||
</MenuItem>
|
</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}`)}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.REWARDS}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.FEATURED} />
|
<Icon aria-hidden icon={ICONS.FEATURED} />
|
||||||
{__('Rewards')}
|
{__('Rewards')}
|
||||||
|
|
|
@ -112,6 +112,11 @@ function SideNavigation(props: Props) {
|
||||||
{
|
{
|
||||||
...buildLink(PAGES.DISCOVER, __('All Content'), ICONS.DISCOVER),
|
...buildLink(PAGES.DISCOVER, __('All Content'), ICONS.DISCOVER),
|
||||||
},
|
},
|
||||||
|
// @if TARGET='app'
|
||||||
|
{
|
||||||
|
...buildLink(PAGES.LIBRARY, __('Library'), ICONS.LIBRARY),
|
||||||
|
},
|
||||||
|
// @endif
|
||||||
].map(linkProps => (
|
].map(linkProps => (
|
||||||
<li key={linkProps.navigate}>
|
<li key={linkProps.navigate}>
|
||||||
<Button {...linkProps} className="navigation-link" activeClass="navigation-link--active" />
|
<Button {...linkProps} className="navigation-link" activeClass="navigation-link--active" />
|
||||||
|
@ -120,11 +125,6 @@ function SideNavigation(props: Props) {
|
||||||
|
|
||||||
{expanded &&
|
{expanded &&
|
||||||
[
|
[
|
||||||
// @if TARGET='app'
|
|
||||||
{
|
|
||||||
...buildLink(PAGES.LIBRARY, __('Library'), ICONS.LIBRARY),
|
|
||||||
},
|
|
||||||
// @endif
|
|
||||||
{
|
{
|
||||||
...buildLink(PAGES.CHANNELS, __('Channels'), ICONS.CHANNEL),
|
...buildLink(PAGES.CHANNELS, __('Channels'), ICONS.CHANNEL),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue