This commit is contained in:
pradeepkumar
2026-03-26 15:00:52 +05:30
parent 5544cf4fc8
commit 2fccc0a5e3

View File

@@ -158,33 +158,36 @@ export function ProfileCard({
{/* Action Buttons */} {/* Action Buttons */}
<div className="flex items-center justify-center lg:justify-start gap-3"> <div className="flex items-center justify-center lg:justify-start gap-3">
{messageHref ? ( {/* Message button - only enabled when connected */}
<Link {(showEditButton || connectionStatus === 'ACCEPTED') && (
href={messageHref} messageHref ? (
onClick={(e) => handleActionClick(e, messageHref)} <Link
className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif cursor-pointer" href={messageHref}
> onClick={(e) => handleActionClick(e, messageHref)}
<Image className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif cursor-pointer"
src="/assets/icons/message-dark-icon.svg" >
alt="Message" <Image
width={14} src="/assets/icons/message-dark-icon.svg"
height={13} alt="Message"
/> width={14}
Message height={13}
</Link> />
) : ( Message
<button </Link>
onClick={(e) => handleActionClick(e)} ) : (
className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif cursor-pointer" <button
> onClick={(e) => handleActionClick(e)}
<Image className="flex items-center gap-2 px-4 py-1.5 bg-[#e58625] text-[#00293d] text-sm font-normal rounded-[15px] border border-[#00293d]/10 hover:bg-[#d47720] transition-colors font-serif cursor-pointer"
src="/assets/icons/message-dark-icon.svg" >
alt="Message" <Image
width={14} src="/assets/icons/message-dark-icon.svg"
height={13} alt="Message"
/> width={14}
Message height={13}
</button> />
Message
</button>
)
)} )}
{showEditButton && requestsHref ? ( {showEditButton && requestsHref ? (
// Agent's own profile - show Requests link with badge // Agent's own profile - show Requests link with badge