Fixed link issue.

This commit is contained in:
Mike Cao 2023-03-09 10:39:59 -08:00
parent 0607e9f442
commit f908476e71

View File

@ -37,8 +37,8 @@ export default function NavGroup({
{items.map(({ label, url, icon, divider }) => {
return (
<Tooltip key={label} label={label} position="right" disabled={!minimized}>
<Link href={url}>
<a
<Link
href={url}
className={classNames(styles.item, {
[styles.divider]: divider,
[styles.selected]: pathname.startsWith(url),
@ -46,7 +46,6 @@ export default function NavGroup({
>
<Icon>{icon}</Icon>
<Text className={styles.text}>{label}</Text>
</a>
</Link>
</Tooltip>
);