From cf37418e109dad84adc49cada3236adeec4e1928 Mon Sep 17 00:00:00 2001 From: smian1 Date: Wed, 11 Dec 2024 11:50:23 -0800 Subject: [PATCH] Refactor mobile menu implementation in AppHeader component - Moved mobile menu panel outside of the header for better structure and accessibility. - Fixed Menu Background --- frontend/src/components/shared/app-header.tsx | 149 +++++++++--------- 1 file changed, 75 insertions(+), 74 deletions(-) diff --git a/frontend/src/components/shared/app-header.tsx b/frontend/src/components/shared/app-header.tsx index 8cf0f8903..6bfcaaf7d 100644 --- a/frontend/src/components/shared/app-header.tsx +++ b/frontend/src/components/shared/app-header.tsx @@ -145,80 +145,25 @@ export default function AppHeader({
+ + {/* Mobile Menu Panel - Moved outside header */} +
+
+ + {customLogo.alt} + + +
+
+
    + {navItems.map((item, index) => ( +
  • + setIsMobileMenuOpen(false)} + > + {item.icon && {item.icon}} + {item.label} + +
  • + ))} +
+
+
) : null; }