feat(specialties): enhance specialties components to include city and state names in metadata and links
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user