feat: remove unused intro prop and related rendering in DoctorsPage component

This commit is contained in:
hamed
2026-08-08 20:06:57 +03:30
parent b494473e40
commit c118791911
2 changed files with 1 additions and 15 deletions
+1 -6
View File
@@ -9,7 +9,7 @@ import states from "@/data/state.json";
import cities from "@/data/city.json";
import { isRootCity } from "@/lib/rootCity";
function DoctorsPage({ matchedCity, matchedState, list, intro }) {
function DoctorsPage({ matchedCity, matchedState, list }) {
const searchParams = useSearchParams();
const [page, setPage] = useState(list?.meta?.currentPage || 1);
const [doctors, setDoctors] = useState(list?.data);
@@ -60,11 +60,6 @@ function DoctorsPage({ matchedCity, matchedState, list, intro }) {
matchedCity={matchedCity}
matchedState={matchedState}
/>
{intro && (
<p className="text-[#525252] text-[14px] md:text-[16px] font-normal leading-8 mt-[24px] text-justify">
{intro}
</p>
)}
<ListDoctors
limit={12}
data={list}