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
@@ -1,13 +1,15 @@
import Link from "next/link";
function ItemSpecialties({ data }) {
function ItemSpecialties({ data, cityName, stateName }) {
return (
<li>
<Link
href={{
pathname: "/doctors",
query: {
specialties: data.id,
specialty: data.name,
...(cityName && { city: cityName }),
...(stateName && { state: stateName }),
},
}}
className="py-[17.5px] px-[12px] flex flex-col justify-center items-center gap-[16px]