refactor: simplify free turn display in appointment components

This commit is contained in:
hamed
2025-11-11 09:44:03 +03:30
parent 79ff139779
commit 7439899996
2 changed files with 2 additions and 2 deletions
@@ -45,7 +45,7 @@ function ItemAppointment({ turn, loading }) {
<TextLoading width={100} height={15} loading={loading}>
<p className="text-[#05BA58] text-[12px] font-medium">
{turn?.free_turn
? `اولین نوبت آزاد: ${turn?.free_turn}`
? ` ${turn?.free_turn}`
: "نوبت ندارد"}
</p>
</TextLoading>
+1 -1
View File
@@ -18,7 +18,7 @@ function AppointmentList({ doctor, loading }) {
border-solid bottom-0 right-0 w-full p-4 flex items-center justify-between"
>
<p className="text-[#05BA58] text-[11px] font-normal">
اولین نوبت آزاد: {doctor && doctor?.free_turn}
{doctor && doctor?.free_turn}
</p>
<Link href={`/appointment/${doctor && doctor?.id}`}>
<Button