diff --git a/web/src/components/navbar/index.js b/web/src/components/navbar/index.js index 80dc0a76..2a8fb341 100644 --- a/web/src/components/navbar/index.js +++ b/web/src/components/navbar/index.js @@ -10,10 +10,10 @@ import { Nav, NavLink, UncontrolledTooltip, - UncontrolledCollapse, Row, Col, Button, + Collapse, } from 'reactstrap'; import Logo from 'assets/img/logo.png'; @@ -48,17 +48,15 @@ OutsideLink.defaultProps = { tooltipText: '', }; -const ResponsiveCollapse = ({ children }) => { +const ResponsiveCollapse = ({ children, isCollapseOpen, setIsCollapseOpen }) => { const [collapseClass, setCollapseClass] = useState(''); - const [isCollapseOpen, setIsCollapseOpen] = useState(false); return ( - - { - @@ -90,7 +83,7 @@ const ResponsiveCollapse = ({ children }) => { {children} - + ); }; @@ -100,6 +93,7 @@ ResponsiveCollapse.propTypes = { }; const Navbar = () => { + const [isCollapseOpen, setIsCollapseOpen] = useState(false); const navbarstrapRef = useRef(); useEffect(() => { const headroom = new Headroom(navbarstrapRef.current); @@ -115,24 +109,24 @@ const Navbar = () => { Polydodo - +