diff --git a/src/components/Sidebar.tsx b/src/components/Sidebar.tsx index 7b554c1..972e5e2 100644 --- a/src/components/Sidebar.tsx +++ b/src/components/Sidebar.tsx @@ -1,4 +1,5 @@ import Link from 'next/link'; +import { useRouter } from 'next/router'; import { Fragment, useState } from 'react'; import { Dialog, Transition } from '@headlessui/react'; import { @@ -28,6 +29,7 @@ function classNames(...classes: any) { export function Sidebar() { const [sidebarOpen, setSidebarOpen] = useState(false) + const router = useRouter(); return ( <> @@ -86,7 +88,7 @@ export function Sidebar() {