react-frontend-common-components 0.0.46 → 0.0.48

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-frontend-common-components",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "Reusable frontend library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -29,14 +29,14 @@ const AppModal = ({
29
29
  width,
30
30
  }: AppModalProps) => {
31
31
  return (
32
- <div className={`AppModal ${className}`}>
32
+ <div>
33
33
  <Modal
34
34
  open={visible}
35
35
  width={width}
36
36
  onCancel={onClose}
37
37
  footer={null}
38
38
  closeIcon={closeIcon || <CloseOutlined />}
39
- className={"modal"}
39
+ className={className}
40
40
  >
41
41
  <div className={"header"}>
42
42
  {title && (
@@ -18,6 +18,7 @@ interface SidebarProps {
18
18
  icon: React.ReactNode;
19
19
  }[];
20
20
  className?: string;
21
+ activeLink?: string;
21
22
  }
22
23
 
23
24
  const Sidebar = ({
@@ -25,6 +26,7 @@ const Sidebar = ({
25
26
  sideBarHead,
26
27
  footerLinks,
27
28
  className,
29
+ activeLink,
28
30
  }: SidebarProps) => {
29
31
  const handleNavigation = (path: string) => {
30
32
  window.location.href = path;
@@ -33,6 +35,7 @@ const Sidebar = ({
33
35
  const menuItems = links.map((link) => ({
34
36
  key: link.path,
35
37
  icon: link.icon,
38
+ className: link.path === activeLink ? "active" : "",
36
39
  label: (
37
40
  <span onClick={() => handleNavigation(link.path)}>
38
41
  {link.label}