Skip to content

Commit

Permalink
chore: route to home after scheduling appt
Browse files Browse the repository at this point in the history
  • Loading branch information
mgramigna committed Dec 22, 2023
1 parent 2c75171 commit 51b7198
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/expo/src/components/organisms/SlotDetail.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, { useCallback, useState } from 'react';
import { View } from 'react-native';
import { router } from 'expo-router';
import { api } from '@/utils/api';
import { getAppointmentResource } from '@/utils/fhir';
import dayjs from 'dayjs';
Expand All @@ -26,6 +27,7 @@ export const SlotDetail = ({
await utils.appointment.search.invalidate();
await utils.appointment.get.invalidate();
setScheduleModalOpen(false);
router.push('/home/');
},
});

Expand Down

0 comments on commit 51b7198

Please sign in to comment.