refactor: update header navigation to dashboard, rename edit profile labels, and update professional search placeholder

This commit is contained in:
pradeepkumar
2026-04-29 16:57:01 +05:30
parent 8f75a2528e
commit 84605b99ea
2 changed files with 5 additions and 7 deletions

View File

@@ -687,7 +687,7 @@ function ProfilesPageContent() {
<div className="relative">
<input
type="text"
placeholder="Search Agents"
placeholder="Search Professionals"
value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)}
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}

View File

@@ -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 (
<header className="bg-[#648188] rounded-[20px] px-4 md:px-8 relative" ref={mobileMenuRef}>
@@ -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)}
>
<Image src="/assets/icons/edit-icon.svg" alt="Edit Page" width={24} height={24} />
<p className="font-fractul text-[16px] leading-[18px] text-black">Edit Page</p>
<Image src="/assets/icons/edit-icon.svg" alt="Edit profile" width={24} height={24} />
<p className="font-fractul text-[16px] leading-[18px] text-black">Edit profile</p>
</Link>
)}