refactor: enhance appointment handling by adding appointmentId state and updating payment process

This commit is contained in:
hamed
2025-11-18 17:09:37 +03:30
parent 5a9f21e88d
commit df54983fa3
6 changed files with 126 additions and 21 deletions
+4 -1
View File
@@ -34,6 +34,8 @@ function Container({
setSelectedSlot,
selectedDate,
setSelectedDate,
appointmentId,
setAppointmentId,
}) {
const elements = [
<Date
@@ -70,8 +72,9 @@ function Container({
doctor={doctor}
selectedSlot={selectedSlot}
selectedDate={selectedDate}
setAppointmentId={setAppointmentId}
/>,
<Paying setStep={setStep} />,
<Paying setStep={setStep} appointmentId={appointmentId} />,
<SuccessPay setStep={setStep} />,
<FailedPay setStep={setStep} />,
];