diff --git a/frontend/src/components/Layout.jsx b/frontend/src/components/Layout.jsx index e6f7f6b..f6f2399 100644 --- a/frontend/src/components/Layout.jsx +++ b/frontend/src/components/Layout.jsx @@ -369,76 +369,78 @@ const Layout = ({ children }) => { {item.section}
- {item.items.map((subItem) => ( -
- {subItem.name === "Hosts" && canManageHosts() ? ( - // Special handling for Hosts item with integrated + button (mobile) - setSidebarOpen(false)} - > - - - {subItem.name} - {subItem.name === "Hosts" && - stats?.cards?.totalHosts !== undefined && ( - - {stats.cards.totalHosts} - - )} - - - - ) : ( - // Standard navigation item (mobile) - e.preventDefault() - : () => setSidebarOpen(false) - } - > - - - {subItem.name} - {subItem.name === "Hosts" && - stats?.cards?.totalHosts !== undefined && ( - - {stats.cards.totalHosts} + + + {subItem.name} + {subItem.name === "Hosts" && + stats?.cards?.totalHosts !== undefined && ( + + {stats.cards.totalHosts} + + )} + + + + ) : ( + // Standard navigation item (mobile) + e.preventDefault() + : () => setSidebarOpen(false) + } + > + + + {subItem.name} + {subItem.name === "Hosts" && + stats?.cards?.totalHosts !== undefined && ( + + {stats.cards.totalHosts} + + )} + {subItem.comingSoon && ( + + Soon )} - {subItem.comingSoon && ( - - Soon - - )} - - - )} -
- ))} + + + )} +
+ ))} ); @@ -453,26 +455,28 @@ const Layout = ({ children }) => { return (
- {item.items.map((subItem) => ( - setSidebarOpen(false)} - > - - - {subItem.name} - {subItem.showUpgradeIcon && ( - - )} - - - ))} + {item.items + .filter((subItem) => !subItem.comingSoon) + .map((subItem) => ( + setSidebarOpen(false)} + > + + + {subItem.name} + {subItem.showUpgradeIcon && ( + + )} + + + ))}
);