From d80fec7fdbbf31a2b0a3579264e9bb01ea45cf4e Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 13 Jan 2022 15:04:24 -0800 Subject: [PATCH] Add "Songs" page to sidebar --- src/components/layout/Sidebar.tsx | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 9104537..063633c 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -51,7 +51,7 @@ const Sidebar = ({ } + icon={} onSelect={handleSidebarSelect} disabled={disableSidebar} onKeyDown={(e: any) => { @@ -90,6 +90,20 @@ const Sidebar = ({ > Favorites + } + onSelect={handleSidebarSelect} + disabled={disableSidebar} + onKeyDown={(e: any) => { + if (e.key === ' ' || e.key === 'Enter') { + history.push('/library/song'); + } + }} + > + Songs +