Skip to content

Commit 33861ca

Browse files
committed
Add container to view all lists
1 parent 6ef7bf8 commit 33861ca

File tree

6 files changed

+14
-1
lines changed

6 files changed

+14
-1
lines changed

.vscode/settings.json

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

app/src/constants.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const URL_LOCATION_UNIT_EDIT = `${URL_LOCATION_UNIT}/edit/:id`;
2828
export const URL_LOCATION_UNIT_GROUP = `${URL_ADMIN}/location/group`;
2929
export const URL_LOCATION_UNIT_GROUP_ADD = `${URL_LOCATION_UNIT_GROUP}/add`;
3030
export const URL_LOCATION_UNIT_GROUP_EDIT = `${URL_LOCATION_UNIT_GROUP}/edit/:id`;
31+
export const URL_ALL_LOCATIONS = `${URL_ADMIN}/location/all`;
3132
export const URL_UPLOAD_JSON_VALIDATOR = `${URL_ADMIN}/form-config/json-validators/upload`;
3233
export const URL_JSON_VALIDATOR_LIST = `${URL_ADMIN}/form-config/json-validators`;
3334
export const URL_DRAFT_FILE_LIST = `${URL_ADMIN}/form-config/drafts`;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import React from "react"
2+
3+
export const AllLocationListFlat = ()=>{
4+
return (
5+
<div>All Locations Rendered</div>
6+
)
7+
}

packages/fhir-location-management/src/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export * as locationTreeStateDucks from './ducks/location-tree-state';
44
export * from './components/LocationUnitList';
55
export * from './components/AddEditLocationUnit';
66
export * from './components/LocationForm';
7+
export * from './components/AllLocationListFlat';
78
export * from './helpers/utils';
89
export * from './helpers/types';
910
export * from './constants';

packages/location-management/src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import LocationUnitGroupAddEdit from './components/LocationUnitGroupAddEdit';
44
import Tree from './components/LocationTree';
55
import { FormInstances } from './components/LocationForm/utils';
66

7+
78
export * as locationHierachyDucks from './ducks/location-hierarchy';
89
export * as updatedLocationHierachyDucks from './ducks/locationHierarchy';
910
export * from './ducks/types';
@@ -17,3 +18,4 @@ export * from './ducks/locationHierarchy/utils';
1718
export * from './helpers/dataLoaders';
1819
export * from './ducks/locationHierarchy/types';
1920
export * from './ducks/location-units';
21+
export * from '../../fhir-location-management/src/components/AllLocationListFlat'

packages/location-management/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"declaration": true,
66
"declarationDir": "dist/types"
77
},
8-
"include": ["**/src"],
8+
"include": ["**/src", "../fhir-location-management/src/components/AllLocationListFlat"],
99
"exclude": ["**/node_modules", "**/coverage", "**/dist", "**/*.spec.ts", "**/*tests"]
1010
}

0 commit comments

Comments
 (0)