groovinads-ui 1.2.54 → 1.2.55

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,7 +1,7 @@
1
1
  {
2
2
  "name": "groovinads-ui",
3
3
  "description": "Groovinads UI is a React component library designed exclusively for Groovinads applications. It provides ready-to-use UI elements styled according to Groovinads design guidelines to facilitate rapid development.",
4
- "version": "1.2.54",
4
+ "version": "1.2.55",
5
5
  "keywords": [
6
6
  "css",
7
7
  "sass",
@@ -27,7 +27,7 @@ const Sidebar = ({
27
27
  }) => {
28
28
  const isMobile = inModal ? true : useMediaQuery({ query: '(max-width: 992px)' });
29
29
 
30
- const url = customUrl !== undefined ? customLinks : window.location.pathname; // to get current url
30
+ const url = customUrl !== undefined ? customUrl : window.location.pathname; // to get current url
31
31
 
32
32
  const [sidebarLinks, setSidebarLinks] = useState([]);
33
33
  const [openIndex, setOpenIndex] = useState(null);
@@ -80,7 +80,7 @@ const Sidebar = ({
80
80
  <div className='scroll'>
81
81
  {customLinks.map((section, i) => (
82
82
  <div className='sidebar-section' key={`sectionIndex${i}`}>
83
- <h4>{section.title}</h4>
83
+ {section.title ? <h4>{section.title}</h4> : <></> }
84
84
 
85
85
  {/* PROPS LINKS */}
86
86
  {(section.backData ? sidebarLinks : section.links || []).map(