diff --git a/apps/web/modules/shell/navigation/NavigationItem.tsx b/apps/web/modules/shell/navigation/NavigationItem.tsx index 4041adb215..41a344bb06 100644 --- a/apps/web/modules/shell/navigation/NavigationItem.tsx +++ b/apps/web/modules/shell/navigation/NavigationItem.tsx @@ -171,9 +171,10 @@ export const NavigationItem: React.FC<{ aria-expanded={isExpanded} aria-current={current ? "page" : undefined} onClick={() => { - setIsExpanded(!isExpanded); if (isTablet && hasChildren) { setIsTooltipOpen(!isTooltipOpen); + } else { + setIsExpanded(!isExpanded); } }} className={classNames( @@ -274,11 +275,20 @@ export const NavigationItem: React.FC<{ )} - {item.child && - shouldShowChildren && - item.child.map((item, index) => ( - - ))} + {hasChildren && ( +
+
+ {item.child?.map((item, index) => ( + + ))} +
+
+ )} ); }; @@ -362,22 +372,30 @@ export const MobileNavigationMoreItem: React.FC<{ className="text-subtle h-5 w-5" /> - {isExpanded && item.child && ( - - )} +
+
+ {item.child && ( +
    + {item.child.map((childItem) => ( +
  • + + + {isLocaleReady ? t(childItem.name) : } + + +
  • + ))} +
+ )} +
+
) : (