refactor: enhance appointment handling by adding appointmentId state and updating payment process
This commit is contained in:
@@ -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} />,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user