From 6f9c4291ac44c4986f7af8a6cb97dabd6a3afee5 Mon Sep 17 00:00:00 2001 From: CynthiaKamau Date: Wed, 19 Jun 2024 11:59:41 +0300 Subject: [PATCH] (refactor) Remove redundant files in pmtct homepage (#1875) --- .../esm-ohri-pmtct-app/src/home.component.tsx | 4 ++-- .../src/views/labs/labs.component.tsx | 20 ------------------- .../mother-child-summary-tabs.component.tsx | 4 ++-- 3 files changed, 4 insertions(+), 24 deletions(-) delete mode 100644 packages/esm-ohri-pmtct-app/src/views/labs/labs.component.tsx diff --git a/packages/esm-ohri-pmtct-app/src/home.component.tsx b/packages/esm-ohri-pmtct-app/src/home.component.tsx index 7eb3a0666..5a3d557fb 100644 --- a/packages/esm-ohri-pmtct-app/src/home.component.tsx +++ b/packages/esm-ohri-pmtct-app/src/home.component.tsx @@ -1,14 +1,14 @@ import React from 'react'; import { OHRIWelcomeSection } from '@ohri/openmrs-esm-ohri-commons-lib'; import MaternalChildSummaryTiles from './views/summary-tabs/maternal-child-summary-tiles.component'; -import LabResultsSummary from './views/summary-tabs/mother-child-summary-tabs.component'; +import MotherChildSummary from './views/summary-tabs/mother-child-summary-tabs.component'; const Home: React.FC = () => { return (
- +
); }; diff --git a/packages/esm-ohri-pmtct-app/src/views/labs/labs.component.tsx b/packages/esm-ohri-pmtct-app/src/views/labs/labs.component.tsx deleted file mode 100644 index a923aaec5..000000000 --- a/packages/esm-ohri-pmtct-app/src/views/labs/labs.component.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React, { useEffect, useState } from 'react'; -import { useTranslation } from 'react-i18next'; -import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib'; - -interface LabsListProps { - patientUuid: string; -} - -const LabsList: React.FC = ({ patientUuid }) => { - const { t } = useTranslation(); - const headerTitle = t('labs', 'Labs'); - - return ( - <> - - - ); -}; - -export default LabsList; diff --git a/packages/esm-ohri-pmtct-app/src/views/summary-tabs/mother-child-summary-tabs.component.tsx b/packages/esm-ohri-pmtct-app/src/views/summary-tabs/mother-child-summary-tabs.component.tsx index 489361ed9..9a7a02d31 100644 --- a/packages/esm-ohri-pmtct-app/src/views/summary-tabs/mother-child-summary-tabs.component.tsx +++ b/packages/esm-ohri-pmtct-app/src/views/summary-tabs/mother-child-summary-tabs.component.tsx @@ -4,7 +4,7 @@ import styles from '../summary-tabs/ohri-patient-tabs.scss'; import { useTranslation } from 'react-i18next'; import { PatientList } from '@ohri/openmrs-esm-ohri-commons-lib'; -const LabResultsSummary: React.FC = () => { +const MotherChildSummary: React.FC = () => { const { t } = useTranslation(); return ( @@ -20,4 +20,4 @@ const LabResultsSummary: React.FC = () => { ); }; -export default LabResultsSummary; +export default MotherChildSummary;