Skip to content

Commit

Permalink
Ict components
Browse files Browse the repository at this point in the history
  • Loading branch information
Halepo committed Aug 25, 2023
1 parent 7a8aaf0 commit 16e740e
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,8 @@ export const indexCaseTestingMenu = getSyncLifecycle(
}),
options
);
export const indexCaseTestingChart = getAsyncLifecycle(
() =>
import("./pages/ict/ict.component"),
options
);
29 changes: 29 additions & 0 deletions src/pages/ict/ict.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
/* eslint-disable prettier/prettier */
import { Tab, Tabs, TabList, TabPanels, TabPanel } from "@carbon/react";
import React from "react";
import styles from "../program-management/program-management.scss";
import ICTGeneral from "./tabs/ict-general.component";
import IndexContactFollowup from "./tabs/index-contact-followup.component";

const ICT: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
return (
<div className={styles.tabContainer}>
<Tabs>
<TabList contained>
<Tab>HEI Enrollment</Tab>
<Tab>HEI Followup</Tab>
</TabList>
<TabPanels>
<TabPanel>
<ICTGeneral patientUuid={patientUuid} />
</TabPanel>
<TabPanel>
<IndexContactFollowup patientUuid={patientUuid} />
</TabPanel>
</TabPanels>
</Tabs>
</div>
);
};

export default ICT;
13 changes: 13 additions & 0 deletions src/pages/ict/tabs/ict-general.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable prettier/prettier */
import React from "react";
import { EmptyStateComingSoon } from "@ohri/openmrs-esm-ohri-commons-lib";

const ICTGeneral: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
const pageTitle = "ICT Summary";

return (
<EmptyStateComingSoon displayText={pageTitle} headerTitle={pageTitle} />
);
};

export default ICTGeneral;
13 changes: 13 additions & 0 deletions src/pages/ict/tabs/index-contact-followup.component.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable prettier/prettier */
import React from "react";
import { EmptyStateComingSoon } from "@ohri/openmrs-esm-ohri-commons-lib";

const IndexContactFollowup: React.FC<{ patientUuid: string }> = ({ patientUuid }) => {
const pageTitle = "ICT Summary";

return (
<EmptyStateComingSoon displayText={pageTitle} headerTitle={pageTitle} />
);
};

export default IndexContactFollowup;
5 changes: 5 additions & 0 deletions src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@
"path": "index-case-testing",
"columns": 1
}
},
{
"name": "index-case-testing-ext",
"slot": "index-case-testing-slot",
"component": "indexCaseTestingChart"
}
]
}

0 comments on commit 16e740e

Please sign in to comment.