feat(specialties): enhance specialties components to include city and state names in metadata and links
This commit is contained in:
@@ -8,7 +8,7 @@ import specialtiesData from "@/data/specialties.json";
|
||||
import { searchOnList } from "@/helper";
|
||||
import { request } from "@/services/response";
|
||||
|
||||
function SpecialtiesPage({ cityId }) {
|
||||
function SpecialtiesPage({ cityId, cityName, stateName }) {
|
||||
const [all, setAll] = useState(specialtiesData);
|
||||
const [filtered, setFiltered] = useState(specialtiesData);
|
||||
|
||||
@@ -38,7 +38,7 @@ function SpecialtiesPage({ cityId }) {
|
||||
handleSearch={handleSearch}
|
||||
/>
|
||||
</HeadPageList>
|
||||
<List specialties={filtered} />
|
||||
<List specialties={filtered} cityName={cityName} stateName={stateName} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user