refactor: pass doctorSlug prop to AppointmentList and ItemAppointment components

This commit is contained in:
hamed
2025-11-12 21:05:06 +03:30
parent 7e655356e5
commit 573edc1eb9
4 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import DetailDoctor from "./detailDoctor";
import Share from "./detailDoctor/Share";
import CustomLoading from "@/app/component/loading/Custom";
function DoctorPage({ doctor, comments }) {
function DoctorPage({ doctor, comments, slug }) {
return (
<div className="pt-[92px] sm:pt-[120px] mt:pt-[148px] lg:pt-[176px] mt-[px] padding-responsive">
<div className="flex items-center justify-between">
@@ -24,7 +24,7 @@ function DoctorPage({ doctor, comments }) {
</div>
<div className="flex items-start justify-center gap-6 mt-[30px]">
<DetailDoctor doctor={doctor} comments={comments} />
<AppointmentList doctor={doctor} />
<AppointmentList doctor={doctor} doctorSlug={slug} />
</div>
</div>
);