feat(specialties): enhance specialties components to include city and state names in metadata and links

This commit is contained in:
hamed
2026-06-21 13:03:50 +03:30
parent cb9d9beaab
commit 8e7d10c859
4 changed files with 19 additions and 8 deletions
+6 -2
View File
@@ -20,10 +20,14 @@ export async function generateMetadata() {
}
async function Specialties() {
const { matchedCity } = await getStateInfo();
const { matchedCity, matchedState } = await getStateInfo();
return (
<Layout name="/specialties">
<SpecialtiesPage cityId={matchedCity?.id ?? null} />
<SpecialtiesPage
cityId={matchedCity?.id ?? null}
cityName={matchedCity?.name ?? null}
stateName={matchedState?.name ?? null}
/>
</Layout>
);
}