add auto-selecotr to home page and handle set in data, search in specialties and send req for filter && add locations and change text

This commit is contained in:
Ehsan
2025-09-15 19:45:39 +03:30
parent 153cb5bc9f
commit 41ba7aa709
14 changed files with 88 additions and 62 deletions
+3 -1
View File
@@ -83,7 +83,9 @@ function ItemDoctor({ doctor }) {
}`}
>
{Number(doctor?.active)
? `اولین نوبت آزاد: ${moment(doctor?.free_turn * 1000)?.format("dddd jD jMMMM")}`
? `اولین نوبت آزاد: ${moment(doctor?.free_turn * 1000).format(
"dddd jD jMMMM [ساعت] HH:mm"
)}`
: "نوبت ندارد"}
</p>
</CustomLoading>
+2 -1
View File
@@ -11,7 +11,8 @@ async function Doctors({ searchParams }) {
let doctors = null;
try {
let newSearchParams = searchParams;
if (matchedCity) newSearchParams.city = matchedCity.name;
if (matchedCity && matchedCity.id !== "63")
newSearchParams.city = matchedCity.name;
if (matchedState) newSearchParams.state = matchedState.name;
const params = buildDoctorParams(searchParams);