diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index bbc792f..4b00efc 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -7,7 +7,6 @@ import { RootContainer, RootFooter, MainContainer } from './styled'; const Layout = ({ footer, children }: any) => { const [expandSidebar, setExpandSidebar] = useState(true); - const [activeSidebarNav, setActiveSidebarNav] = useState('discover'); const history = useHistory(); const handleToggle = () => { @@ -17,7 +16,6 @@ const Layout = ({ footer, children }: any) => { const handleSidebarSelect = (e: string) => { let route; const navItem = String(e); - setActiveSidebarNav(navItem); switch (navItem) { case 'discover': route = '/'; @@ -51,7 +49,6 @@ const Layout = ({ footer, children }: any) => { diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index ff7e3da..a0219ea 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -2,12 +2,7 @@ import React from 'react'; import { Sidenav, Nav, Icon } from 'rsuite'; import { FixedSidebar } from './styled'; -const Sidebar = ({ - expand, - handleToggle, - active, - handleSidebarSelect, -}: any) => { +const Sidebar = ({ expand, handleToggle, handleSidebarSelect }: any) => { return (