get data with filter location for first time, get comment of doctor and show in doctor page, handle new comment

This commit is contained in:
Ehsan
2025-09-03 22:05:26 +03:30
parent 6920e4078b
commit ebfe47468c
14 changed files with 187 additions and 50 deletions
+8 -1
View File
@@ -8,8 +8,15 @@ async function Doctors({ searchParams }) {
let doctors = null;
try {
const params = {};
if (matchedCity) params.city = matchedCity;
if (matchedState) params.state = matchedState;
const response = await axios.get(
"https://back-dev.clinic-pro.ir/api/v1/doctors"
"https://back-dev.clinic-pro.ir/api/v1/doctors",
{
// params,
}
);
doctors = response.data.data;
} catch (error) {