diff --git a/src/Web/autopilot-monitor-web/components/GlobalSidebar.tsx b/src/Web/autopilot-monitor-web/components/GlobalSidebar.tsx index 941510a7..bdba7e77 100644 --- a/src/Web/autopilot-monitor-web/components/GlobalSidebar.tsx +++ b/src/Web/autopilot-monitor-web/components/GlobalSidebar.tsx @@ -271,7 +271,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) { // --- Render helpers --- const renderIcon = (icon: ReactNode | undefined, sizeClass = "w-4 h-4") => { - if (icon) return {icon}; + if (icon) return {icon}; return ; }; @@ -322,7 +322,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) {
  • setMobileDrawerOpen(false)} className={`${base} px-3 py-1.5`}> {renderIcon(item.icon, "w-4 h-4")} - {item.label} + {item.label}
  • ); @@ -367,7 +367,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) {
  • setMobileDrawerOpen(false)} className={`${base} px-3 py-1.5`}> {renderIcon(item.icon, "w-4 h-4")} - {item.label} + {item.label}
  • ); @@ -377,7 +377,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) {
  • ); @@ -489,7 +489,7 @@ export function GlobalSidebar({ children }: { children: ReactNode }) { }`} title={expandItem.label} > - {expandItem.icon} + {expandItem.icon} {expandItem.label} @@ -513,8 +513,8 @@ export function GlobalSidebar({ children }: { children: ReactNode }) { : "text-gray-600 hover:bg-gray-100 hover:text-gray-900 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-gray-200" }`} > - {expandItem.icon} - {expandItem.label} + {expandItem.icon} + {expandItem.label} - + {group.icon ? group.icon : renderIcon(undefined, "w-4.5 h-4.5")} @@ -651,11 +651,11 @@ export function GlobalSidebar({ children }: { children: ReactNode }) { }`} > {/* Group icon */} - + {group.icon ? group.icon : renderIcon(undefined, "w-4 h-4")} {/* Group label */} - {group.name} + {group.name} {/* Chevron */}