From 54abdacb083111b8614c0f5a4aad1baea7ffc759 Mon Sep 17 00:00:00 2001 From: Satyam Rastogi Date: Fri, 29 May 2026 21:59:18 +0530 Subject: [PATCH] fix(nav): footer avatar opens /profile (User Details); add People to owner nav (skill rankings) --- src/components/Layout.jsx | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index 7c16372..6b74130 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -153,6 +153,7 @@ const Layout = () => { { to: "/admin/schedule", icon: Calendar, label: "Team Schedule" }, { to: "/admin/leaderboard", icon: Trophy, label: "Leaderboard" }, { to: "/owner/subcontractor-tasks", icon: HardHat, label: "Subcontractor Tasks" }, + { to: "/owner/people", icon: Users, label: "People" }, { to: "/owner/settings", icon: Settings, label: "Org Settings" }, ...commonItems, ]; @@ -307,16 +308,20 @@ const Layout = () => { {/* Divider */}
- {/* Avatar */} -
- {user?.name?.charAt(0) || 'U'} -
- - {/* Info */} -
-
{user?.name}
-
{user?.role?.replace('_', ' ')}
-
+ {/* Avatar + info — click to open your User Details / profile */} + {/* Logout Button */} {(!isCollapsed || isMobileMenuOpen) && (