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

+ + )} +