Closed NuriyaAkh closed 1 year ago
It's looking good @NuriyaAkh !!
I think before submitting to the database, the user should have the option to confirm the details(maybe in the same popup) "Does this look right?" Once they click yes, then the database request is made
Description
the AppointmentForm component to display either a successful appointment request details or an error popup. The changes ensure that when there are no errors in creating an appointment, the requested appointment details are displayed in the popup. In case of an error, a popup with an error message is displayed instead. The user can close the popup by clicking the close button.
-Updated the AppointmentForm component to conditionally render the AppointmentDetailsPopup component or the ErrorPopup component based on the presence of errors. -Created the AppointmentDetailsPopup component to display the requested appointment details. -Created the ErrorPopup component to display an error message. -Created and reused the Popup component for both the AppointmentDetailsPopup and ErrorPopup components to maintain consistent styling. P.S. 🤫 Shraddha, I re-used your styles for the Popup
Related Issue
closes #19
Acceptance Criteria
Type of Changes
Updates
Before
After
Testing Steps / QA Criteria