|
@ -1,5 +1,5 @@ |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
import { Sidenav, Nav, Icon } from 'rsuite'; |
|
|
import { Sidenav, Nav, Icon, Dropdown } from 'rsuite'; |
|
|
import { FixedSidebar } from './styled'; |
|
|
import { FixedSidebar } from './styled'; |
|
|
|
|
|
|
|
|
const Sidebar = ({ |
|
|
const Sidebar = ({ |
|
@ -22,20 +22,20 @@ const Sidebar = ({ |
|
|
<Sidenav.Body> |
|
|
<Sidenav.Body> |
|
|
<Nav> |
|
|
<Nav> |
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
eventKey="discover" |
|
|
eventKey="nowplaying" |
|
|
icon={<Icon icon="dashboard" />} |
|
|
icon={<Icon icon="music" />} |
|
|
onSelect={handleSidebarSelect} |
|
|
onSelect={handleSidebarSelect} |
|
|
disabled={disableSidebar} |
|
|
disabled={disableSidebar} |
|
|
> |
|
|
> |
|
|
Dashboard |
|
|
Now Playing |
|
|
</Nav.Item> |
|
|
</Nav.Item> |
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
eventKey="nowplaying" |
|
|
eventKey="discover" |
|
|
icon={<Icon icon="music" />} |
|
|
icon={<Icon icon="dashboard" />} |
|
|
onSelect={handleSidebarSelect} |
|
|
onSelect={handleSidebarSelect} |
|
|
disabled={disableSidebar} |
|
|
disabled={disableSidebar} |
|
|
> |
|
|
> |
|
|
Now Playing |
|
|
Dashboard |
|
|
</Nav.Item> |
|
|
</Nav.Item> |
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
eventKey="starred" |
|
|
eventKey="starred" |
|
@ -54,13 +54,29 @@ const Sidebar = ({ |
|
|
Playlists |
|
|
Playlists |
|
|
</Nav.Item> |
|
|
</Nav.Item> |
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
eventKey="library" |
|
|
eventKey="folders" |
|
|
icon={<Icon icon="folder-open" />} |
|
|
icon={<Icon icon="folder-open" />} |
|
|
onSelect={handleSidebarSelect} |
|
|
onSelect={handleSidebarSelect} |
|
|
disabled={disableSidebar} |
|
|
disabled={disableSidebar} |
|
|
> |
|
|
> |
|
|
Library |
|
|
Folders |
|
|
</Nav.Item> |
|
|
</Nav.Item> |
|
|
|
|
|
<Dropdown |
|
|
|
|
|
placement="rightStart" |
|
|
|
|
|
eventKey="library" |
|
|
|
|
|
title="Library" |
|
|
|
|
|
icon={<Icon icon="book2" />} |
|
|
|
|
|
> |
|
|
|
|
|
<Dropdown.Item eventKey="albums" onSelect={handleSidebarSelect}> |
|
|
|
|
|
Albums |
|
|
|
|
|
</Dropdown.Item> |
|
|
|
|
|
<Dropdown.Item eventKey="artists" onSelect={handleSidebarSelect}> |
|
|
|
|
|
Artists |
|
|
|
|
|
</Dropdown.Item> |
|
|
|
|
|
<Dropdown.Item eventKey="genres" onSelect={handleSidebarSelect}> |
|
|
|
|
|
Genres |
|
|
|
|
|
</Dropdown.Item> |
|
|
|
|
|
</Dropdown> |
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
eventKey="config" |
|
|
eventKey="config" |
|
|
icon={<Icon icon="gear-circle" />} |
|
|
icon={<Icon icon="gear-circle" />} |
|
@ -69,6 +85,7 @@ const Sidebar = ({ |
|
|
> |
|
|
> |
|
|
Config |
|
|
Config |
|
|
</Nav.Item> |
|
|
</Nav.Item> |
|
|
|
|
|
|
|
|
<Nav.Item |
|
|
<Nav.Item |
|
|
icon={<Icon icon={expand ? 'arrow-left' : 'arrow-right'} />} |
|
|
icon={<Icon icon={expand ? 'arrow-left' : 'arrow-right'} />} |
|
|
onSelect={handleToggle} |
|
|
onSelect={handleToggle} |
|
|