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:
hamed
2026-06-16 22:27:39 +03:30
co-authored by Claude Opus 4.8
parent 69e591f03e
commit 344285dce5
4 changed files with 130 additions and 9 deletions
+3 -2
View File
@@ -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>
);
}