diff --git a/app/navbar.tsx b/app/navbar.tsx index 4b7bc96..4731529 100644 --- a/app/navbar.tsx +++ b/app/navbar.tsx @@ -1,6 +1,16 @@ +import { Collapse } from "./utils/bootstrap.client"; import { Link, NavLink } from "@remix-run/react"; +import { useRef } from "react"; + +const onItemClick = (nav: HTMLElement | null) => { + if (nav !== null) { + Collapse.getInstance(nav)?.hide(); + } +}; export default function Navbar() { + const collapseRef = useRef(null); + return (