Skip to content

Commit

Permalink
(feat) O3-2859: Change Patient Appointments to use shared appointment…
Browse files Browse the repository at this point in the history
…s form (#1674)


---------

Co-authored-by: CynthiaKamau <[email protected]>
  • Loading branch information
mogoodrich and CynthiaKamau authored Feb 20, 2024
1 parent 5769fa0 commit eb32c3e
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 1,159 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ const CancelAppointmentModal: React.FC<CancelAppointmentModalProps> = ({
const [isSubmitting, setIsSubmitting] = useState(false);

const handleCancel = async () => {
const abortController = new AbortController();
setIsSubmitting(true);

cancelAppointment('Cancelled', appointmentUuid, abortController)
cancelAppointment('Cancelled', appointmentUuid)
.then(({ status }) => {
if (status === 200) {
mutate();
Expand Down
Loading

0 comments on commit eb32c3e

Please sign in to comment.