Skip to content

Commit

Permalink
Merge pull request #163 from pedrolivaresanchez/fix/menu-toggle-desktop
Browse files Browse the repository at this point in the history
fix: menu toggle on desktop bug
  • Loading branch information
patrickwebsdev authored Nov 8, 2024
2 parents 512419f + c2fc0c1 commit 00fe932
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/layout/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,11 @@ export default function Sidebar({ isOpen, toggleAction }: SidebarProps) {

{/* User info and login */}
<div className="p-4">
<UserInfo toggleAction={toggleAction} />
<UserInfo
toggleAction={() => {
if (window.innerWidth < 768) toggleAction();
}}
/>
</div>

{/* Toggle button for desktop */}
Expand Down

0 comments on commit 00fe932

Please sign in to comment.