Skip to content

Commit

Permalink
fix failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyjemutai committed Jul 8, 2024
1 parent 89ed2f2 commit 7560749
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import React from 'react';
import { TabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EncounterListTabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { useConfig } from '@openmrs/esm-framework';
import { type PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib';
import tptProgramManagemetConfigSchema from './tb-program-management-config.json';

const ProgramManagementSummary: React.FC<PatientChartProps> = ({ patientUuid }) => {
const config = useConfig();

return <TabsComponent patientUuid={patientUuid} configSchema={tptProgramManagemetConfigSchema} config={config} />;
return (
<EncounterListTabsComponent
patientUuid={patientUuid}
configSchema={tptProgramManagemetConfigSchema}
config={config}
/>
);
};

export default ProgramManagementSummary;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { TabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EncounterListTabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { useConfig } from '@openmrs/esm-framework';
import tbFollowupConfigSchema from './tb-contact-listing-config.json';

Expand All @@ -10,7 +10,7 @@ interface OverviewListProps {
const TbContactTracingList: React.FC<OverviewListProps> = ({ patientUuid }) => {
const config = useConfig();

return <TabsComponent patientUuid={patientUuid} configSchema={tbFollowupConfigSchema} config={config} />;
return <EncounterListTabsComponent patientUuid={patientUuid} configSchema={tbFollowupConfigSchema} config={config} />;
};

export default TbContactTracingList;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useConfig } from '@openmrs/esm-framework';
import { TabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EncounterListTabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import tptProgramManagemetConfigSchema from './tpt-program-management-config.json';

interface OverviewListProps {
Expand All @@ -10,7 +10,13 @@ interface OverviewListProps {
const TptProgramManagementSummary: React.FC<OverviewListProps> = ({ patientUuid }) => {
const config = useConfig();

return <TabsComponent patientUuid={patientUuid} configSchema={tptProgramManagemetConfigSchema} config={config} />;
return (
<EncounterListTabsComponent
patientUuid={patientUuid}
configSchema={tptProgramManagemetConfigSchema}
config={config}
/>
);
};

export default TptProgramManagementSummary;
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { useConfig } from '@openmrs/esm-framework';
import { TabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import { EncounterListTabsComponent } from '@ohri/openmrs-esm-ohri-commons-lib';
import tbFollowupConfigSchema from './tb-treatment-followup-config.json';

interface OverviewListProps {
Expand All @@ -10,7 +10,7 @@ interface OverviewListProps {
const TbTreatmentFollowUpList: React.FC<OverviewListProps> = ({ patientUuid }) => {
const config = useConfig();

return <TabsComponent patientUuid={patientUuid} configSchema={tbFollowupConfigSchema} config={config} />;
return <EncounterListTabsComponent patientUuid={patientUuid} configSchema={tbFollowupConfigSchema} config={config} />;
};

export default TbTreatmentFollowUpList;

0 comments on commit 7560749

Please sign in to comment.