From 51b719838dc9798a8beddd7e14a099d316a20253 Mon Sep 17 00:00:00 2001 From: Matt Gramigna Date: Fri, 22 Dec 2023 15:22:52 -0500 Subject: [PATCH] chore: route to home after scheduling appt --- apps/expo/src/components/organisms/SlotDetail.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/expo/src/components/organisms/SlotDetail.tsx b/apps/expo/src/components/organisms/SlotDetail.tsx index 02b53fa..a14edea 100644 --- a/apps/expo/src/components/organisms/SlotDetail.tsx +++ b/apps/expo/src/components/organisms/SlotDetail.tsx @@ -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'; @@ -26,6 +27,7 @@ export const SlotDetail = ({ await utils.appointment.search.invalidate(); await utils.appointment.get.invalidate(); setScheduleModalOpen(false); + router.push('/home/'); }, });