refactor: update header navigation to dashboard, rename edit profile labels, and update professional search placeholder
This commit is contained in:
@@ -687,7 +687,7 @@ function ProfilesPageContent() {
|
|||||||
<div className="relative">
|
<div className="relative">
|
||||||
<input
|
<input
|
||||||
type="text"
|
type="text"
|
||||||
placeholder="Search Agents"
|
placeholder="Search Professionals"
|
||||||
value={searchQuery}
|
value={searchQuery}
|
||||||
onChange={(e) => setSearchQuery(e.target.value)}
|
onChange={(e) => setSearchQuery(e.target.value)}
|
||||||
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
|
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
|
||||||
|
|||||||
@@ -53,10 +53,8 @@ export function CommonHeader() {
|
|||||||
// Use fetched profile image, fallback to session image
|
// Use fetched profile image, fallback to session image
|
||||||
const userImage = profileImage || session?.user?.image;
|
const userImage = profileImage || session?.user?.image;
|
||||||
|
|
||||||
// Logo destination based on role:
|
// Logo destination — always lands on the user home / dashboard regardless of role.
|
||||||
// - AGENT logged in → Agent Listing Page (/user/profiles) so they can browse the directory
|
const dashboardLink = '/user/dashboard';
|
||||||
// - everyone else → /user/dashboard
|
|
||||||
const dashboardLink = userRole === 'AGENT' ? '/user/profiles' : '/user/dashboard';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="bg-[#648188] rounded-[20px] px-4 md:px-8 relative" ref={mobileMenuRef}>
|
<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"
|
className="flex items-center gap-3 px-4 py-3 border-b border-black/10 hover:bg-black/5 transition-colors"
|
||||||
onClick={() => setShowProfileMenu(false)}
|
onClick={() => setShowProfileMenu(false)}
|
||||||
>
|
>
|
||||||
<Image src="/assets/icons/edit-icon.svg" alt="Edit Page" width={24} height={24} />
|
<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 Page</p>
|
<p className="font-fractul text-[16px] leading-[18px] text-black">Edit profile</p>
|
||||||
</Link>
|
</Link>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user