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:
@@ -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
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user