feat: conditionally render experience text based on doctor's experience value
This commit is contained in:
@@ -48,11 +48,13 @@ function Title({ doctor }) {
|
||||
</h2>
|
||||
</TextLoading>
|
||||
<div className="flex items-center justify-start gap-11">
|
||||
<TextLoading width={60} height={20}>
|
||||
<p className="text-[#525252] text-[16px] font-medium">
|
||||
{doctor?.experience} سال تجربه
|
||||
</p>
|
||||
</TextLoading>
|
||||
{Number(doctor?.experience) > 0 && (
|
||||
<TextLoading width={60} height={20}>
|
||||
<p className="text-[#525252] text-[16px] font-medium">
|
||||
{doctor?.experience} سال تجربه
|
||||
</p>
|
||||
</TextLoading>
|
||||
)}
|
||||
<div className="flex items-center gap-1">
|
||||
<div className="hidden lg:flex">
|
||||
<TickCircle />
|
||||
|
||||
Reference in New Issue
Block a user