Fix menu link
This commit is contained in:
parent
f2558f19f9
commit
aa86815418
1 changed files with 9 additions and 1 deletions
|
@ -22,7 +22,15 @@ export default function HeaderMenuLink(props: Props) {
|
||||||
|
|
||||||
if (useMui) {
|
if (useMui) {
|
||||||
return (
|
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} />
|
<Icon aria-hidden icon={icon} />
|
||||||
{name}
|
{name}
|
||||||
</MuiMenuItem>
|
</MuiMenuItem>
|
||||||
|
|
Loading…
Reference in a new issue