Refactored exports.

This commit is contained in:
Mike Cao committed 2023-04-21 08:00:42 -07:00
1 parent 1baf4d5571
commit 8bddc666b4
110 files changed
+317 -124

No files matched your search

+3 -1
View File
@@ -4,7 +4,7 @@ import { useRouter } from 'next/router';
import Link from 'next/link';
import styles from './SideNav.module.css';
export default function SideNav({ selectedKey, items, shallow, onSelect = () => {} }) {
export function SideNav({ selectedKey, items, shallow, onSelect = () => {} }) {
const { asPath } = useRouter();
return (
<Menu items={items} selectedKey={selectedKey} className={styles.menu} onSelect={onSelect}>
@@ -21,3 +21,5 @@ export default function SideNav({ selectedKey, items, shallow, onSelect = () =>
</Menu>
);
}
export default SideNav;