pcm-shared-components 0.0.149 → 0.0.150
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useState, useEffect } from 'react';
|
|
2
|
-
import { Tooltip, IconButton } from "@mui/material";
|
|
2
|
+
import { Tooltip, IconButton, MenuItem, Menu } from "@mui/material";
|
|
3
3
|
import ChevronRightIcon from '@mui/icons-material/ChevronRight';
|
|
4
4
|
import { makeStyles } from '@mui/styles';
|
|
5
5
|
import ListItemIcon from "@mui/material/ListItemIcon";
|
|
6
6
|
import ListItemText from "@mui/material/ListItemText";
|
|
7
7
|
import Switch from "@mui/material/Switch";
|
|
8
|
-
import { StyledMenuItem
|
|
8
|
+
import { StyledMenuItem } from './StyledMenuParts';
|
|
9
9
|
|
|
10
10
|
const GenericSubMenu = ({
|
|
11
11
|
menu,
|
|
@@ -91,8 +91,8 @@ const GenericSubMenu = ({
|
|
|
91
91
|
color: "inherit",
|
|
92
92
|
"aria-owns": "menu-appbar",
|
|
93
93
|
onClick: openSubMenu
|
|
94
|
-
}, menu.icon)), /*#__PURE__*/React.createElement(
|
|
95
|
-
className: "
|
|
94
|
+
}, menu.icon)), /*#__PURE__*/React.createElement(Menu, {
|
|
95
|
+
className: "",
|
|
96
96
|
style: {
|
|
97
97
|
display: anchorSubMenu ? 'block' : 'none'
|
|
98
98
|
} //Makes the disappearing menu smoother so I don't see it being jarred in a corner.
|
|
@@ -115,7 +115,7 @@ const GenericSubMenu = ({
|
|
|
115
115
|
classes: classes,
|
|
116
116
|
full_menu: true,
|
|
117
117
|
handleParentMenuClose: handleSubMenuClose
|
|
118
|
-
}) : /*#__PURE__*/React.createElement(
|
|
118
|
+
}) : /*#__PURE__*/React.createElement(MenuItem, {
|
|
119
119
|
key: `sub_menu_items__${idx}}`,
|
|
120
120
|
onClick: () => {
|
|
121
121
|
handleSubMenuClose();
|