refactor: update location display order to state-first and fix minor typos in auth pages
This commit is contained in:
@@ -424,8 +424,8 @@ export default function AgentDashboard() {
|
||||
title={agentProfile.agentType?.name || 'Real Estate Agent'}
|
||||
location={
|
||||
profileCardData.city && profileCardData.state
|
||||
? `${profileCardData.city}, ${profileCardData.state}`
|
||||
: profileCardData.city || profileCardData.state || profileCardData.serviceAreas?.[0] || 'United States'
|
||||
? `${profileCardData.state}, ${profileCardData.city}`
|
||||
: profileCardData.state || profileCardData.city || profileCardData.serviceAreas?.[0] || 'United States'
|
||||
}
|
||||
memberSince={formatMemberSince((agentProfile as unknown as { createdAt?: string }).createdAt)}
|
||||
bio={profileCardData.bio || agentProfile.bio || ''}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function ForgotPasswordPage() {
|
||||
<>
|
||||
{/* Forgot Password Heading */}
|
||||
<div className="text-center mb-6">
|
||||
<h2 className="text-[30px] font-normal text-[#00293d] font-fractul mb-3">Forget Your Password</h2>
|
||||
<h2 className="text-[30px] font-normal text-[#00293d] font-fractul mb-3">Forgot Your Password</h2>
|
||||
<p className="text-[14px] text-[#00293d] px-4 leading-[20px] font-fractul">
|
||||
Enter your registered email to reset your password.
|
||||
</p>
|
||||
|
||||
@@ -144,7 +144,7 @@ export default function LoginPage() {
|
||||
<div className="text-center mb-6">
|
||||
<h2 className="text-[30px] font-normal text-[#00293d] font-fractul mb-3">Login</h2>
|
||||
<p className="text-[14px] text-[#00293d] px-4 leading-[20px] font-fractul">
|
||||
Login or create an account to enjoy FREE consultation on all property inquiries.
|
||||
Login or create an account
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -242,7 +242,7 @@ export default function LoginPage() {
|
||||
{/* Forgot Password Link */}
|
||||
<div className="text-right">
|
||||
<Link href="/forgot-password" className="text-[#00293d] text-[14px] font-light font-serif leading-[24px] hover:underline">
|
||||
Forget Your Password ?
|
||||
Forgot Your Password?
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -353,8 +353,8 @@ export default function AgentProfileView() {
|
||||
isVerified={agentProfile.isVerified}
|
||||
title={agentProfile.agentType?.name || 'Real Estate Agent'}
|
||||
location={profileCardData.city && profileCardData.state
|
||||
? `${profileCardData.city}, ${profileCardData.state}`
|
||||
: profileCardData.city || profileCardData.state || agentProfile.serviceAreas?.[0] || '-'}
|
||||
? `${profileCardData.state}, ${profileCardData.city}`
|
||||
: profileCardData.state || profileCardData.city || agentProfile.serviceAreas?.[0] || '-'}
|
||||
memberSince={formatMemberSince((agentProfile as unknown as { createdAt?: string }).createdAt)}
|
||||
bio={profileCardData.bio || agentProfile.bio || ''}
|
||||
expertise={profileCardData.expertise.length > 0 ? profileCardData.expertise : (agentProfile.specializations || [])}
|
||||
|
||||
@@ -157,9 +157,9 @@ function ProfileCard({ profile, resolvedAvatarUrl }: ProfileCardProps) {
|
||||
stateValue = profile.state;
|
||||
}
|
||||
|
||||
// Build location string
|
||||
// Build location string (state first, then city)
|
||||
if (cityValue && stateValue) {
|
||||
return `${cityValue}, ${stateValue}`;
|
||||
return `${stateValue}, ${cityValue}`;
|
||||
}
|
||||
if (cityValue && profile.country) {
|
||||
return `${cityValue}, ${profile.country}`;
|
||||
|
||||
Reference in New Issue
Block a user