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
+3
View File
@@ -32,6 +32,7 @@ function AppointmentPage({ doctor, disabledDates, matchedCity }) {
// Appointment slot states
const [selectedSlot, setSelectedSlot] = useState(null);
const [selectedDate, setSelectedDate] = useState(null);
const [appointmentId, setAppointmentId] = useState(null);
useEffect(() => {
const fetchUserData = async () => {
@@ -201,6 +202,8 @@ function AppointmentPage({ doctor, disabledDates, matchedCity }) {
setSelectedSlot={setSelectedSlot}
selectedDate={selectedDate}
setSelectedDate={setSelectedDate}
appointmentId={appointmentId}
setAppointmentId={setAppointmentId}
/>
);
}