mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
Merge pull request #60 from enkinvsh/fix/close-menu-on-tabbar-click
Close mobile menu when clicking bottom nav items
This commit is contained in:
@@ -635,6 +635,7 @@ export default function Layout({ children }: LayoutProps) {
|
|||||||
<Link
|
<Link
|
||||||
key={item.path}
|
key={item.path}
|
||||||
to={item.path}
|
to={item.path}
|
||||||
|
onClick={() => setMobileMenuOpen(false)}
|
||||||
className={isActive(item.path) ? 'bottom-nav-item-active' : 'bottom-nav-item'}
|
className={isActive(item.path) ? 'bottom-nav-item-active' : 'bottom-nav-item'}
|
||||||
>
|
>
|
||||||
<item.icon />
|
<item.icon />
|
||||||
|
|||||||
Reference in New Issue
Block a user