refactor: simplify free turn display in appointment components
This commit is contained in:
@@ -45,7 +45,7 @@ function ItemAppointment({ turn, loading }) {
|
|||||||
<TextLoading width={100} height={15} loading={loading}>
|
<TextLoading width={100} height={15} loading={loading}>
|
||||||
<p className="text-[#05BA58] text-[12px] font-medium">
|
<p className="text-[#05BA58] text-[12px] font-medium">
|
||||||
{turn?.free_turn
|
{turn?.free_turn
|
||||||
? `اولین نوبت آزاد: ${turn?.free_turn}`
|
? ` ${turn?.free_turn}`
|
||||||
: "نوبت ندارد"}
|
: "نوبت ندارد"}
|
||||||
</p>
|
</p>
|
||||||
</TextLoading>
|
</TextLoading>
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ function AppointmentList({ doctor, loading }) {
|
|||||||
border-solid bottom-0 right-0 w-full p-4 flex items-center justify-between"
|
border-solid bottom-0 right-0 w-full p-4 flex items-center justify-between"
|
||||||
>
|
>
|
||||||
<p className="text-[#05BA58] text-[11px] font-normal">
|
<p className="text-[#05BA58] text-[11px] font-normal">
|
||||||
اولین نوبت آزاد: {doctor && doctor?.free_turn}
|
{doctor && doctor?.free_turn}
|
||||||
</p>
|
</p>
|
||||||
<Link href={`/appointment/${doctor && doctor?.id}`}>
|
<Link href={`/appointment/${doctor && doctor?.id}`}>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user