Finished sidebar functionality.

This commit is contained in:
Daniel
2022-06-16 01:02:07 +04:30
parent ffd044c2d2
commit 781b64548a
4 changed files with 51 additions and 49 deletions
+2 -2
View File
@@ -16,9 +16,9 @@ const SideBar = ({ tags, handleToggleSidebar, toggle }) => {
<SidebarContent className='sidebar-content'>
<Menu iconShape="circle">
<MenuItem><Link to="/"><h3>View All</h3></Link></MenuItem>
<MenuItem><Link to="/"><h3>Show Everything</h3></Link></MenuItem>
<SubMenu title='Tags'>
<SubMenu icon='#' defaultOpen={true} title='Tags'>
{tags.map((e, i) => {
const path = `/tags/${e}`
return <MenuItem key={i}><Link to={path}>{e}</Link></MenuItem>