Skip to content

Commit

Permalink
(chore) Loosen fhir2 dependency requirement (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniskigen authored Mar 4, 2024
1 parent a78d446 commit c20b377
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ci:prepublish": "lerna publish from-package --no-git-reset --yes --dist-tag next",
"release": "lerna version --no-git-tag-version",
"verify": "turbo lint typescript test",
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx}\" \"e2e/**/*.ts\"",
"prettier": "prettier --config prettier.config.js --write \"packages/**/*.{ts,tsx}\" \"e2e/**/*.ts\" --list-different",
"postinstall": "husky install",
"test-e2e": "playwright test",
"coverage": "yarn test --coverage",
Expand Down
45 changes: 21 additions & 24 deletions packages/esm-admin-openconceptlab-app/src/root.component.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { Tab, Tabs, TabList, TabPanels, TabPanel } from '@carbon/react';
import { useTranslation } from 'react-i18next';
import { SWRConfig } from 'swr';
import Import from './import/import.component';
import PreviousImports from './previous-imports/previous-imports.component';
import Subscription from './subscription/subscription.component';
Expand All @@ -10,29 +9,27 @@ import styles from './root.scss';
const Root: React.FC = () => {
const { t } = useTranslation();
return (
<SWRConfig>
<main className={`omrs-main-content ${styles.main}`}>
<h3 className={styles.moduleHeader}>{t('moduleTitle', 'OCL Subscription Module')}</h3>
<Tabs>
<TabList aria-label="OCL tabs" className={styles.tabList} contained={true}>
<Tab>{t('subscription', 'Subscription')} </Tab>
<Tab>{t('import', 'Import')} </Tab>
<Tab>{t('previousImports', 'Previous Imports')} </Tab>
</TabList>
<TabPanels>
<TabPanel className={styles.tabPanel}>
<Subscription />
</TabPanel>
<TabPanel className={styles.tabPanel}>
<Import />
</TabPanel>
<TabPanel className={styles.tabPanel}>
<PreviousImports />
</TabPanel>
</TabPanels>
</Tabs>
</main>
</SWRConfig>
<main className={`omrs-main-content ${styles.main}`}>
<h3 className={styles.moduleHeader}>{t('moduleTitle', 'OCL Subscription Module')}</h3>
<Tabs>
<TabList aria-label="OCL tabs" className={styles.tabList} contained={true}>
<Tab>{t('subscription', 'Subscription')} </Tab>
<Tab>{t('import', 'Import')} </Tab>
<Tab>{t('previousImports', 'Previous Imports')} </Tab>
</TabList>
<TabPanels>
<TabPanel className={styles.tabPanel}>
<Subscription />
</TabPanel>
<TabPanel className={styles.tabPanel}>
<Import />
</TabPanel>
<TabPanel className={styles.tabPanel}>
<PreviousImports />
</TabPanel>
</TabPanels>
</Tabs>
</main>
);
};

Expand Down
4 changes: 2 additions & 2 deletions packages/esm-system-admin-app/src/routes.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://json.openmrs.org/routes.schema.json",
"backendDependencies": {
"fhir2": "^1.2.0",
"fhir2": ">=1.2",
"webservices.rest": "^2.2.0"
},
"extensions": [
Expand All @@ -23,4 +23,4 @@
"route": "system-administration"
}
]
}
}

0 comments on commit c20b377

Please sign in to comment.