diff --git a/components/layout/SideNav.js b/components/layout/SideNav.js index e521fe42..2b93c3f2 100644 --- a/components/layout/SideNav.js +++ b/components/layout/SideNav.js @@ -1,12 +1,18 @@ +import classNames from 'classnames'; import { Menu, Item } from 'react-basics'; +import { useRouter } from 'next/router'; import Link from 'next/link'; import styles from './SideNav.module.css'; export default function SideNav({ selectedKey, items, shallow, onSelect = () => {} }) { + const { asPath } = useRouter(); return (