react-frontend-common-components 0.0.35 → 0.0.36
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
@@ -11,7 +11,7 @@ interface SidebarProps {
|
|
11
11
|
icon: React.ReactNode;
|
12
12
|
tag?: React.ReactNode;
|
13
13
|
}[];
|
14
|
-
|
14
|
+
sideBarHead?: React.ReactNode;
|
15
15
|
footerLinks?: {
|
16
16
|
label: string;
|
17
17
|
path: string;
|
@@ -20,7 +20,12 @@ interface SidebarProps {
|
|
20
20
|
className?: string;
|
21
21
|
}
|
22
22
|
|
23
|
-
const Sidebar = ({
|
23
|
+
const Sidebar = ({
|
24
|
+
links,
|
25
|
+
sideBarHead,
|
26
|
+
footerLinks,
|
27
|
+
className,
|
28
|
+
}: SidebarProps) => {
|
24
29
|
const handleNavigation = (path: string) => {
|
25
30
|
window.location.href = path;
|
26
31
|
};
|
@@ -47,7 +52,7 @@ const Sidebar = ({ links, logo, footerLinks, className }: SidebarProps) => {
|
|
47
52
|
return (
|
48
53
|
<div className={`sideBar ${className}`}>
|
49
54
|
<Sider className={"sider"}>
|
50
|
-
<div className={"logo"}>{
|
55
|
+
<div className={"logo"}>{sideBarHead}</div>
|
51
56
|
<Menu mode="inline" className={"menu"} items={menuItems} />
|
52
57
|
{footerLinks && (
|
53
58
|
<div className={"footer"}>
|