change key field to specialty, filter list doctors with name, remove loading state from doctors page, save state id in url
This commit is contained in:
+2
-1
@@ -12,10 +12,11 @@ async function Doctors({ searchParams }) {
|
||||
|
||||
if (matchedCity) params.city = matchedCity?.id || null;
|
||||
if (matchedState) params.state = matchedState?.id || null;
|
||||
|
||||
const response = await axios.get(
|
||||
"https://back-dev.clinic-pro.ir/api/v1/doctors",
|
||||
{
|
||||
// params,
|
||||
params,
|
||||
}
|
||||
);
|
||||
doctors = response.data.data;
|
||||
|
||||
Reference in New Issue
Block a user