responsive pagination && handle free_turn value && fix set value in small size appo list in page doctors && set data rate in doctor item && fix set token in cookie in page login on domain nobat724.com

This commit is contained in:
ehsan
2025-10-04 17:16:47 +03:30
parent e1510b142b
commit 83e482507b
19 changed files with 282 additions and 171 deletions
@@ -5,7 +5,6 @@ import GreenCalendarTurn from "@/components/icons/GreenCalendarTurn";
import { Button } from "@mui/material";
import Image from "next/image";
import Link from "next/link";
import { convertTimestampToPersianDateSimple } from "@/helper";
function ItemAppointment({ turn, loading }) {
return (
@@ -45,8 +44,8 @@ function ItemAppointment({ turn, loading }) {
<GreenCalendarTurn />
<TextLoading width={100} height={15} loading={loading}>
<p className="text-[#05BA58] text-[12px] font-medium">
{Number(turn?.free_turn)
? `اولین نوبت آزاد: ${convertTimestampToPersianDateSimple(turn?.free_turn)}`
{turn?.free_turn
? `اولین نوبت آزاد: ${turn?.free_turn}`
: "نوبت ندارد"}
</p>
</TextLoading>