feat(specialties): show per-city doctor count on /specialties
Fetch active specialties with number_of_doctors from GET /api/v1/specialties/doctor-counts (scoped to the current city via matchedCity.id) instead of the static specialties.json, so each specialty card shows the real doctor count. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -17,10 +17,11 @@ export async function generateMetadata() {
|
||||
};
|
||||
}
|
||||
|
||||
function Specialties() {
|
||||
async function Specialties() {
|
||||
const { matchedCity } = await getStateInfo();
|
||||
return (
|
||||
<Layout name="/specialties">
|
||||
<SpecialtiesPage />
|
||||
<SpecialtiesPage cityId={matchedCity?.id ?? null} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user