-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OHRI-2122 Add Program Management under the TPT Program
- Loading branch information
Showing
7 changed files
with
139 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
packages/esm-tb-app/src/views/tpt/program-management/tabs/tpt-enrolment.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib'; | ||
|
||
interface TptEnrolmentListProps { | ||
patientUuid: string; | ||
} | ||
|
||
const TptEnrolmentList: React.FC<TptEnrolmentListProps> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
|
||
const headerTitle = t('tptTreatment'); | ||
|
||
return ( | ||
<> | ||
<EmptyStateComingSoon displayText={headerTitle} headerTitle={headerTitle} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default TptEnrolmentList; |
21 changes: 21 additions & 0 deletions
21
packages/esm-tb-app/src/views/tpt/program-management/tabs/tpt-treatment.component copy.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import React from 'react'; | ||
import { useTranslation } from 'react-i18next'; | ||
import { EmptyStateComingSoon } from '@ohri/openmrs-esm-ohri-commons-lib'; | ||
|
||
interface TptTreatmentListProps { | ||
patientUuid: string; | ||
} | ||
|
||
const TptTreatmentList: React.FC<TptTreatmentListProps> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
|
||
const headerTitle = t('TptEnrolment'); | ||
|
||
return ( | ||
<> | ||
<EmptyStateComingSoon displayText={headerTitle} headerTitle={headerTitle} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default TptTreatmentList; |
31 changes: 31 additions & 0 deletions
31
packages/esm-tb-app/src/views/tpt/program-management/tpt-program-management.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import React from 'react'; | ||
import { Tabs, Tab, TabList, TabPanels, TabPanel } from '@carbon/react'; | ||
import styles from '../../common.scss'; | ||
import { useTranslation } from 'react-i18next'; | ||
import TptTreatmentList from './tabs/tpt-treatment.component copy'; | ||
import TptEnrolmentList from './tabs/tpt-enrolment.component'; | ||
import { PatientChartProps } from '@ohri/openmrs-esm-ohri-commons-lib'; | ||
|
||
const TptProgramManagementSummary: React.FC<PatientChartProps> = ({ patientUuid }) => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<div className={styles.tabContainer}> | ||
<Tabs> | ||
<TabList contained> | ||
<Tab>{t('tptEnrolment')}</Tab> | ||
<Tab>{t('tptTreatment')}</Tab> | ||
</TabList> | ||
<TabPanels> | ||
<TabPanel> | ||
<TptEnrolmentList patientUuid={patientUuid} /> | ||
</TabPanel> | ||
<TabPanel> | ||
<TptTreatmentList patientUuid={patientUuid} /> | ||
</TabPanel> | ||
</TabPanels> | ||
</Tabs> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TptProgramManagementSummary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters