Skip to content

Commit

Permalink
Use PatientChartProps from commons lib
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 committed Nov 21, 2023
1 parent 004c8e2 commit 32c34b4
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 28 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EmptyStateComingSoon, PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';
import React, { useMemo } from 'react';
import { useTranslation } from 'react-i18next';
interface OverviewListProps {
patientUuid: string;
}

const TBSummaryOverviewList: React.FC<OverviewListProps> = ({ patientUuid }) => {
const TBSummaryOverviewList: React.FC<PatientChartProps> = ({ patientUuid }) => {
const { t } = useTranslation();

const headerRecentTB = t('recentTuberculosis', 'Recent Tuberculosis');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@ import styles from '../common.scss';
import { useTranslation } from 'react-i18next';
import MdrTbList from './tabs/mdr-tb.component';
import TbPatientTracing from './tabs/tb-patient-tracing.component';
import { PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';

interface OverviewListProps {
patientUuid: string;
}

const ProgramManagementSummary: React.FC<OverviewListProps> = ({ patientUuid }) => {
const ProgramManagementSummary: React.FC<PatientChartProps> = ({ patientUuid }) => {
const { t } = useTranslation();
return (
<div className={styles.tabContainer}>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EmptyStateComingSoon, PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';

interface MdrTbListProps {
patientUuid: string;
}

const MdrTbList: React.FC<MdrTbListProps> = ({ patientUuid }) => {
const MdrTbList: React.FC<PatientChartProps> = ({ patientUuid }) => {
const { t } = useTranslation();
const headerTitle = t('MdrTbEnrolment', 'TB/MDR TB Enrolment');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EmptyStateComingSoon, PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';

interface TbPatientTracingProps {
patientUuid: string;
}

const TbPatientTracing: React.FC<TbPatientTracingProps> = ({ patientUuid }) => {
const TbPatientTracing: React.FC<PatientChartProps> = ({ patientUuid }) => {
const { t } = useTranslation();
const headerTitle = t('PatientTracing', 'Patient Tracing');

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import React, { useEffect, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EmptyStateComingSoon, PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';

interface TbContactTracingListProps {
patientUuid: string;
}

const TbContactTracingList: React.FC<TbContactTracingListProps> = ({ patientUuid }) => {
const TbContactTracingList: React.FC<PatientChartProps> = ({ patientUuid }) => {
const { t } = useTranslation();
const headerTitle = t('TbContactListing', 'TB Contact Listing');

Expand Down

0 comments on commit 32c34b4

Please sign in to comment.