From 573edc1eb951fd6d27e4453b7061c3338769715f Mon Sep 17 00:00:00 2001 From: hamed <15238-genius.ha@users.noreply.drupalcode.org> Date: Wed, 12 Nov 2025 21:05:06 +0330 Subject: [PATCH] refactor: pass doctorSlug prop to AppointmentList and ItemAppointment components --- app/doctor/[slug]/page.js | 2 +- components/doctor/appointmentList/ItemAppointment.js | 4 ++-- components/doctor/appointmentList/index.js | 6 +++--- components/doctor/index.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/app/doctor/[slug]/page.js b/app/doctor/[slug]/page.js index d8902c9..f5bfa19 100644 --- a/app/doctor/[slug]/page.js +++ b/app/doctor/[slug]/page.js @@ -24,7 +24,7 @@ async function Doctor({ params: { slug } }) { return ( - + ); } diff --git a/components/doctor/appointmentList/ItemAppointment.js b/components/doctor/appointmentList/ItemAppointment.js index a32de2a..60d12a1 100644 --- a/components/doctor/appointmentList/ItemAppointment.js +++ b/components/doctor/appointmentList/ItemAppointment.js @@ -6,7 +6,7 @@ import { Button } from "@mui/material"; import Image from "next/image"; import Link from "next/link"; -function ItemAppointment({ turn, loading }) { +function ItemAppointment({ turn, loading, doctorSlug }) { return (
  • - +