feat: display fallback "Not specified" state for agent work environment and tagline info cards
This commit is contained in:
@@ -496,7 +496,6 @@ export default function AgentDashboard() {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{workEnvironmentData.content && (
|
|
||||||
<InfoCard
|
<InfoCard
|
||||||
title={workEnvironmentData.label}
|
title={workEnvironmentData.label}
|
||||||
icon={
|
icon={
|
||||||
@@ -507,23 +506,32 @@ export default function AgentDashboard() {
|
|||||||
height={28}
|
height={28}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
content={<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>}
|
content={
|
||||||
|
workEnvironmentData.content ? (
|
||||||
|
<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>
|
||||||
|
) : (
|
||||||
|
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
{testimonials.length > 0 && (
|
|
||||||
<InfoCard
|
<InfoCard
|
||||||
title=""
|
title={personalTaglineData.label}
|
||||||
icon={
|
icon={
|
||||||
<Image
|
<Image
|
||||||
src="/assets/icons/testimonial-star-icon.svg"
|
src="/assets/icons/testimonial-star-icon.svg"
|
||||||
alt="Testimonial"
|
alt={personalTaglineData.label}
|
||||||
width={28}
|
width={28}
|
||||||
height={28}
|
height={28}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
content={<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">“{testimonials[0].text.length > 150 ? testimonials[0].text.substring(0, 150) + '...' : testimonials[0].text}”</p>}
|
content={
|
||||||
|
personalTaglineData.content ? (
|
||||||
|
<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”</p>
|
||||||
|
) : (
|
||||||
|
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Specialization Section */}
|
{/* Specialization Section */}
|
||||||
|
|||||||
@@ -424,7 +424,6 @@ export default function AgentProfileView() {
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{workEnvironmentData.content && (
|
|
||||||
<InfoCard
|
<InfoCard
|
||||||
title={workEnvironmentData.label}
|
title={workEnvironmentData.label}
|
||||||
icon={
|
icon={
|
||||||
@@ -435,10 +434,14 @@ export default function AgentProfileView() {
|
|||||||
height={28}
|
height={28}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
content={<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>}
|
content={
|
||||||
|
workEnvironmentData.content ? (
|
||||||
|
<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>
|
||||||
|
) : (
|
||||||
|
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
{personalTaglineData.content && (
|
|
||||||
<InfoCard
|
<InfoCard
|
||||||
title={personalTaglineData.label}
|
title={personalTaglineData.label}
|
||||||
icon={
|
icon={
|
||||||
@@ -449,9 +452,14 @@ export default function AgentProfileView() {
|
|||||||
height={28}
|
height={28}
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
content={<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”</p>}
|
content={
|
||||||
|
personalTaglineData.content ? (
|
||||||
|
<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">“{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}”</p>
|
||||||
|
) : (
|
||||||
|
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Specialization Section */}
|
{/* Specialization Section */}
|
||||||
|
|||||||
Reference in New Issue
Block a user