@omniumretail/component-library 1.3.63 → 1.3.64
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26663,7 +26663,8 @@ const Header = ({
|
|
|
26663
26663
|
onProfileClick,
|
|
26664
26664
|
onHomeClick,
|
|
26665
26665
|
showSupport = false,
|
|
26666
|
-
onSupportModalOpen
|
|
26666
|
+
onSupportModalOpen,
|
|
26667
|
+
onMenuToggle
|
|
26667
26668
|
}) => {
|
|
26668
26669
|
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
26669
26670
|
const [activeDropdown, setActiveDropdown] = useState(null);
|
|
@@ -26735,6 +26736,7 @@ const Header = ({
|
|
|
26735
26736
|
const combinedMenuList = [...menuTopList, ...menuList2 || [], ...menuBottomList];
|
|
26736
26737
|
const onToggleMenu = () => {
|
|
26737
26738
|
setIsMenuOpen(!isMenuOpen);
|
|
26739
|
+
onMenuToggle?.(!isMenuOpen);
|
|
26738
26740
|
};
|
|
26739
26741
|
const handleDropdownClick = (e, index) => {
|
|
26740
26742
|
e.stopPropagation();
|