@openmrs/esm-patient-common-lib 11.3.1-pre.8891 → 11.3.1-pre.8905

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-patient-common-lib",
3
- "version": "11.3.1-pre.8891",
3
+ "version": "11.3.1-pre.8905",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Library for common patient chart components",
6
6
  "browser": "dist/openmrs-esm-patient-common-lib.js",
@@ -3,12 +3,12 @@ import { BrowserRouter } from 'react-router-dom';
3
3
  import { DashboardExtension } from '@openmrs/esm-styleguide';
4
4
  import { type DashboardLinkConfig } from '../types';
5
5
 
6
- export const createDashboardLink = (db: DashboardLinkConfig) => {
7
- return ({ basePath }: { basePath: string }) => {
6
+ export function createDashboardLink(db: DashboardLinkConfig) {
7
+ return function ({ basePath }: { basePath: string }) {
8
8
  return (
9
9
  <BrowserRouter>
10
10
  <DashboardExtension basePath={basePath} title={db.title} path={db.path} icon={db.icon} />
11
11
  </BrowserRouter>
12
12
  );
13
13
  };
14
- };
14
+ }
@@ -1,11 +1,11 @@
1
- import { type OpenmrsResource } from '@openmrs/esm-framework';
1
+ import { type IconId, type OpenmrsResource } from '@openmrs/esm-framework';
2
2
 
3
3
  export * from './test-results';
4
4
 
5
5
  export interface DashboardLinkConfig {
6
6
  path: string;
7
7
  title: string;
8
- icon: string;
8
+ icon?: IconId;
9
9
  moduleName?: string;
10
10
  }
11
11