Skip to content

Commit

Permalink
more clean ups
Browse files Browse the repository at this point in the history
  • Loading branch information
hadijahkyampeire committed Sep 4, 2024
1 parent 5ff352a commit e5f4e59
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 324 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const EncounterListTabsComponent: React.FC<EncounterListTabsComponentProps> = ({
const { tabDefinitions = [] } = config;

const tabsConfig = getMenuItemTabsConfiguration(tabDefinitions);
const filter = (encounter, name) => false;
const filter = (encounter, formUuid) => encounter?.form?.uuid === formUuid;

return (
<div className={styles.tabContainer}>
Expand All @@ -29,7 +29,7 @@ const EncounterListTabsComponent: React.FC<EncounterListTabsComponentProps> = ({
{tabsConfig.map((tab) => (
<TabPanel key={tab.name}>
<EncounterList
filter={tab.hasFilter ? (encounter) => filter(encounter, tab.launchOptions[0].label) : null}
filter={tab.hasFilter ? (encounter) => filter(encounter, tab.formList[0].uuid) : null}
patientUuid={patientUuid}
formList={tab.formList}
columns={tab.columns}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit e5f4e59

Please sign in to comment.