From efb994055c0cb257d591eaaddcdc90f7b8496f63 Mon Sep 17 00:00:00 2001 From: divija-zemoso Date: Fri, 30 Sep 2022 14:36:10 +0530 Subject: [PATCH] added error messages --- src/patients/search/ViewPatients.tsx | 2 +- src/patients/visits/FilterPatientModal.tsx | 2 ++ .../appointments/AppointmentDetailForm.tsx | 2 +- .../appointments/edit/EditAppointment.tsx | 2 ++ .../appointments/new/NewAppointment.tsx | 24 ++++++++++--------- .../appointments/service/Appointments.tsx | 11 +++++++-- .../appointments/view/ViewAppointment.tsx | 2 ++ 7 files changed, 30 insertions(+), 15 deletions(-) diff --git a/src/patients/search/ViewPatients.tsx b/src/patients/search/ViewPatients.tsx index d659a0339b..d9dc221616 100644 --- a/src/patients/search/ViewPatients.tsx +++ b/src/patients/search/ViewPatients.tsx @@ -1,7 +1,7 @@ import { Button } from '@hospitalrun/components' import React, { useEffect } from 'react' import { useDispatch } from 'react-redux' -import { useHistory } from 'react-router' +import { useHistory } from 'react-router-dom' import useAddBreadcrumbs from '../../page-header/breadcrumbs/useAddBreadcrumbs' import { useButtonToolbarSetter } from '../../page-header/button-toolbar/ButtonBarProvider' diff --git a/src/patients/visits/FilterPatientModal.tsx b/src/patients/visits/FilterPatientModal.tsx index 9ab199cbe6..44775f58dd 100644 --- a/src/patients/visits/FilterPatientModal.tsx +++ b/src/patients/visits/FilterPatientModal.tsx @@ -40,6 +40,7 @@ const FilterPatientModal = ({ show, onCloseButtonClick, onFieldChange }: Props)