Skip to content

Commit e7e4ae6

Browse files
committed
update comments
1 parent 26e6045 commit e7e4ae6

File tree

1 file changed

+1
-3
lines changed
  • src/theme/Navbar/MobileSidebar/PrimaryMenu

1 file changed

+1
-3
lines changed

src/theme/Navbar/MobileSidebar/PrimaryMenu/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ export default function NavbarMobilePrimaryMenu(): ReactNode {
2525
<ul className="menu__list">
2626
{items.map((item, i) => {
2727
// 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)
3028
const isProductsDropdown =
3129
item.type === 'dropdown' &&
3230
item.label === 'Products' &&
3331
item.items?.some((subItem) => subItem.type === 'html')
3432

35-
// If it's the Products dropdown, render our custom component
33+
// If it's the Products dropdown, render custom component
3634
if (isProductsDropdown) {
3735
return (
3836
<ProductsMenuMobile

0 commit comments

Comments
 (0)