Fix menu link

This commit is contained in:
Rafael 2022-05-04 10:44:19 -03:00 committed by Thomas Zarebczan
parent f2558f19f9
commit aa86815418

View file

@ -22,7 +22,15 @@ export default function HeaderMenuLink(props: Props) {
if (useMui) {
return (
<MuiMenuItem className="menu__link" component={MuiLink} href={`/$/${page}`}>
<MuiMenuItem
className="menu__link"
component={MuiLink}
href={`/$/${page}`}
onClick={(e) => {
e.preventDefault();
push(`/$/${page}`);
}}
>
<Icon aria-hidden icon={icon} />
{name}
</MuiMenuItem>