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:
+8
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user