pcm-shared-components 0.0.95 → 0.0.96

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.
@@ -9,7 +9,8 @@ import Switch from "@mui/material/Switch";
9
9
  const GenericSubMenu = ({
10
10
  menu,
11
11
  full_menu = true,
12
- handleParentMenuClose = undefined
12
+ handleParentMenuClose = undefined,
13
+ onClose
13
14
  }) => {
14
15
  const [anchorSubMenu, setAnchorSubMenu] = useState(false);
15
16
  const [isSubMenuOpen, setSubMenuOpen] = useState(false);
@@ -61,8 +62,9 @@ const GenericSubMenu = ({
61
62
 
62
63
  if (handleParentMenuClose) {
63
64
  handleParentMenuClose();
64
- } // handleMobileMenuClose();
65
+ }
65
66
 
67
+ onClose();
66
68
  };
67
69
 
68
70
  useEffect(() => {
@@ -58,7 +58,8 @@ const ReusableMenu = props => {
58
58
  key: `common_grid_app_bar_sub_desktop_${idx}`,
59
59
  menu: menu,
60
60
  full_menu: true,
61
- classes: classes
61
+ classes: classes,
62
+ onClose: handleClose
62
63
  })) : /*#__PURE__*/React.createElement(StyledMenuItem, {
63
64
  onClick: menu.onClick,
64
65
  key: `reusable_menu_item_${idx}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.95",
3
+ "version": "0.0.96",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {