diff --git a/packages/esm-appointments-app/src/home/index.tsx b/packages/esm-appointments-app/src/home/index.tsx index 7edec7aca..4e0b1e7f9 100644 --- a/packages/esm-appointments-app/src/home/index.tsx +++ b/packages/esm-appointments-app/src/home/index.tsx @@ -1,18 +1,9 @@ import React from 'react'; -import { SWRConfig } from 'swr'; import AppointmentsBaseTable from './appointments-base-table.component'; -const swrConfiguration = { - errorRetryCount: 3, -}; - const HomeAppointments = () => { - return ( - - - - ); + return ; }; export default HomeAppointments; diff --git a/packages/esm-appointments-app/src/root.component.tsx b/packages/esm-appointments-app/src/root.component.tsx index 522daf845..187a73472 100644 --- a/packages/esm-appointments-app/src/root.component.tsx +++ b/packages/esm-appointments-app/src/root.component.tsx @@ -1,28 +1,21 @@ import React from 'react'; -import { SWRConfig } from 'swr'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; import AppointmentsCalendarView from './calendar/appointments-calendar-view.component'; import Appointments from './appointments.component'; import CalendarPatientList from './calendar/patient-list/calendar-patient-list.component'; -const swrConfiguration = { - errorRetryCount: 3, -}; - const RootComponent: React.FC = () => { const appointmentsBasename = window.getOpenmrsSpaBase() + 'home/appointments'; return (
- - - - } /> - } /> - } /> - - - + + + } /> + } /> + } /> + +
); }; diff --git a/packages/esm-service-queues-app/src/root.component.tsx b/packages/esm-service-queues-app/src/root.component.tsx index 6aac9136f..3cc1ef056 100644 --- a/packages/esm-service-queues-app/src/root.component.tsx +++ b/packages/esm-service-queues-app/src/root.component.tsx @@ -1,5 +1,4 @@ import React from 'react'; -import { SWRConfig } from 'swr'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; import AppointmentsTable from './queue-patient-linelists/scheduled-appointments-table.component'; import Home from './home.component'; @@ -7,28 +6,21 @@ import ServicesTable from './queue-patient-linelists/queue-services-table.compon import QueueScreen from './queue-screen/queue-screen.component'; import QueueTableByStatusView from './views/queue-table-by-status-view.component'; -const swrConfiguration = { - // Maximum number of retries when the backend returns an error - errorRetryCount: 3, -}; - const Root: React.FC = () => { const serviceQueuesBasename = window.getOpenmrsSpaBase() + 'home/service-queues'; return (
- - - - } /> - } /> - } /> - } /> - } /> - } /> - - - + + + } /> + } /> + } /> + } /> + } /> + } /> + +
); };