From 84605b99eaa53f8c77409cbb9fea46cade8a8c9b Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Wed, 29 Apr 2026 16:57:01 +0530 Subject: [PATCH] refactor: update header navigation to dashboard, rename edit profile labels, and update professional search placeholder --- src/app/(user)/user/profiles/page.tsx | 2 +- src/components/layout/CommonHeader.tsx | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/app/(user)/user/profiles/page.tsx b/src/app/(user)/user/profiles/page.tsx index 2499344..334bade 100644 --- a/src/app/(user)/user/profiles/page.tsx +++ b/src/app/(user)/user/profiles/page.tsx @@ -687,7 +687,7 @@ function ProfilesPageContent() {
setSearchQuery(e.target.value)} onKeyDown={(e) => e.key === 'Enter' && handleSearch()} diff --git a/src/components/layout/CommonHeader.tsx b/src/components/layout/CommonHeader.tsx index 4108fcd..f42c966 100644 --- a/src/components/layout/CommonHeader.tsx +++ b/src/components/layout/CommonHeader.tsx @@ -53,10 +53,8 @@ export function CommonHeader() { // Use fetched profile image, fallback to session image const userImage = profileImage || session?.user?.image; - // 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'; + // Logo destination — always lands on the user home / dashboard regardless of role. + const dashboardLink = '/user/dashboard'; return (
@@ -231,8 +229,8 @@ export function CommonHeader() { className="flex items-center gap-3 px-4 py-3 border-b border-black/10 hover:bg-black/5 transition-colors" onClick={() => setShowProfileMenu(false)} > - Edit Page -

Edit Page

+ Edit profile +

Edit profile

)}