refactor: enhance appointment handling by adding appointmentId state and updating payment process
This commit is contained in:
@@ -18,6 +18,7 @@ function Detail({
|
||||
doctor,
|
||||
selectedSlot,
|
||||
selectedDate,
|
||||
setAppointmentId,
|
||||
}) {
|
||||
const [insurance, setInsurance] = useState();
|
||||
const [supplementaryInsurance, setSupplementaryInsurance] = useState();
|
||||
@@ -93,14 +94,15 @@ function Detail({
|
||||
</p>
|
||||
</Button>
|
||||
)}
|
||||
<SubmitData
|
||||
setStep={setStep}
|
||||
data={data}
|
||||
prevData={prevData}
|
||||
<SubmitData
|
||||
setStep={setStep}
|
||||
data={data}
|
||||
prevData={prevData}
|
||||
setErrors={setErrors}
|
||||
doctor={doctor}
|
||||
selectedSlot={selectedSlot}
|
||||
selectedDate={selectedDate}
|
||||
setAppointmentId={setAppointmentId}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user