Browse Source

fix: close offscreen menu if same page is selected

pull/2/head
Muthu Kumar 5 months ago
parent
commit
7647391545
Failed to extract signature
  1. 2
      src/components/Menu.tsx

2
src/components/Menu.tsx

@ -89,7 +89,7 @@ const Menu: React.FC<{
<a <a
className={cx({ active })} className={cx({ active })}
key={link} key={link}
onClick={navigate(link)} onClick={e => (setShowMenu(false), navigate(link)(e))}
href={link}> href={link}>
{name} {name}
</a> </a>

Loading…
Cancel
Save