We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e6045 commit e7e4ae6Copy full SHA for e7e4ae6
src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx
@@ -25,14 +25,12 @@ export default function NavbarMobilePrimaryMenu(): ReactNode {
25
<ul className="menu__list">
26
{items.map((item, i) => {
27
// Check if this is the Products dropdown
28
- // We identify it by checking if it's a dropdown with label "Products"
29
- // and if it contains an HTML item (which is our Products.html)
30
const isProductsDropdown =
31
item.type === 'dropdown' &&
32
item.label === 'Products' &&
33
item.items?.some((subItem) => subItem.type === 'html')
34
35
- // If it's the Products dropdown, render our custom component
+ // If it's the Products dropdown, render custom component
36
if (isProductsDropdown) {
37
return (
38
<ProductsMenuMobile
0 commit comments