From 8f75a2528e030b541bec856f9ce4a26328095c79 Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 29 Apr 2026 14:49:38 +0530 Subject: [PATCH] feat: disable agent-to-agent connections and update navigation for agent role --- src/components/layout/CommonHeader.tsx | 17 +++++++++++++++-- src/components/profile/ProfileCard.tsx | 5 ++++- src/components/profile/StatusButtons.tsx | 6 ++++++ 3 files changed, 25 insertions(+), 3 deletions(-) diff --git a/src/components/layout/CommonHeader.tsx b/src/components/layout/CommonHeader.tsx index 82ac1f8..4108fcd 100644 --- a/src/components/layout/CommonHeader.tsx +++ b/src/components/layout/CommonHeader.tsx @@ -53,8 +53,10 @@ export function CommonHeader() { // Use fetched profile image, fallback to session image const userImage = profileImage || session?.user?.image; - // Determine dashboard link based on user role - const dashboardLink = userRole === 'AGENT' ? '/agent/dashboard' : '/user/dashboard'; + // Logo destination based on role: + // - AGENT logged in → Agent Listing Page (/user/profiles) so they can browse the directory + // - everyone else → /user/dashboard + const dashboardLink = userRole === 'AGENT' ? '/user/profiles' : '/user/dashboard'; return (
@@ -223,6 +225,17 @@ export function CommonHeader() {

Notification Settings

+ {userRole === 'AGENT' && ( + setShowProfileMenu(false)} + > + Edit Page +

Edit Page

+ + )} +