l-min-components 1.0.157 → 1.0.159
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.
package/package.json
CHANGED
|
@@ -14,7 +14,14 @@ import { CiLogout } from "react-icons/ci";
|
|
|
14
14
|
import UserCard from "../userCard";
|
|
15
15
|
import cx from "classnames";
|
|
16
16
|
|
|
17
|
-
const SideMenu = ({
|
|
17
|
+
const SideMenu = ({
|
|
18
|
+
user,
|
|
19
|
+
routes,
|
|
20
|
+
userType,
|
|
21
|
+
onLogout = () => {},
|
|
22
|
+
isOpen = false,
|
|
23
|
+
setIsOpen,
|
|
24
|
+
}) => {
|
|
18
25
|
// const [isOpen, setIsOpen] = useState(false);
|
|
19
26
|
const onToggle = () => {
|
|
20
27
|
setIsOpen(!isOpen);
|
|
@@ -36,8 +43,7 @@ const SideMenu = ({ user, routes, userType, onLogout, isOpen, setIsOpen }) => {
|
|
|
36
43
|
className={cx(`${route.text}`, ({ isActive, isPending }) => {
|
|
37
44
|
isActive ? "active" : "";
|
|
38
45
|
})}
|
|
39
|
-
minimal={isOpen}
|
|
40
|
-
>
|
|
46
|
+
minimal={isOpen}>
|
|
41
47
|
<IconContainer active={active}>{icon}</IconContainer>
|
|
42
48
|
|
|
43
49
|
<TextContainer minimal={isOpen}>{text}</TextContainer>
|
|
@@ -89,7 +95,7 @@ SideMenu.propTypes = {
|
|
|
89
95
|
).isRequired,
|
|
90
96
|
})
|
|
91
97
|
).isRequired,
|
|
92
|
-
onLogout: PropTypes.func
|
|
98
|
+
onLogout: PropTypes.func,
|
|
93
99
|
};
|
|
94
100
|
|
|
95
101
|
export default SideMenu;
|