mirror of
https://github.com/jeffvli/sonixd.git
synced 2026-04-29 02:32:37 -04:00
Add "Songs" page to sidebar
This commit is contained in:
@@ -51,7 +51,7 @@ const Sidebar = ({
|
||||
<SidebarNavItem
|
||||
tabIndex={0}
|
||||
eventKey="nowplaying"
|
||||
icon={<Icon icon="music" />}
|
||||
icon={<Icon icon="headphones" />}
|
||||
onSelect={handleSidebarSelect}
|
||||
disabled={disableSidebar}
|
||||
onKeyDown={(e: any) => {
|
||||
@@ -90,6 +90,20 @@ const Sidebar = ({
|
||||
>
|
||||
Favorites
|
||||
</SidebarNavItem>
|
||||
<SidebarNavItem
|
||||
tabIndex={0}
|
||||
eventKey="songs"
|
||||
icon={<Icon icon="music" />}
|
||||
onSelect={handleSidebarSelect}
|
||||
disabled={disableSidebar}
|
||||
onKeyDown={(e: any) => {
|
||||
if (e.key === ' ' || e.key === 'Enter') {
|
||||
history.push('/library/song');
|
||||
}
|
||||
}}
|
||||
>
|
||||
Songs
|
||||
</SidebarNavItem>
|
||||
<SidebarNavItem
|
||||
tabIndex={0}
|
||||
eventKey="albums"
|
||||
|
||||
Reference in New Issue
Block a user