diff --git a/packages/esm-tb-app/src/dashboard.meta.tsx b/packages/esm-tb-app/src/dashboard.meta.tsx index 97b834dfe..e9e5fe372 100644 --- a/packages/esm-tb-app/src/dashboard.meta.tsx +++ b/packages/esm-tb-app/src/dashboard.meta.tsx @@ -44,6 +44,12 @@ export const tbClinicalViewDashboardMeta = { isFolder: true, title: 'Tuberculosis', }; +export const tbPreventionDashboardMeta = { + name: 'tb-prevention', + slot: 'tb-prevention-dashboard-slot', + config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'}, + title: 'TB Prevention', +}; export const tbCasesDashboardMeta = { name: 'tb-cases', @@ -52,13 +58,6 @@ export const tbCasesDashboardMeta = { title: 'TB Treatment', }; -export const tbPreventionDashboardMeta = { - name: 'tb-prevention', - slot: 'tb-prevention-dashboard-slot', - config: { columns: 1, type: 'grid', programme: 'tpt', dashboardTitle: 'TB Prevention'}, - title: 'TB Prevention', -}; - export const tptPatientChartMeta = { title: 'TPT Program', slotName: 'ohri-tpt-slot', diff --git a/packages/esm-tb-app/src/routes.json b/packages/esm-tb-app/src/routes.json index 6477df2f6..53154a6a4 100644 --- a/packages/esm-tb-app/src/routes.json +++ b/packages/esm-tb-app/src/routes.json @@ -152,6 +152,37 @@ "title": "Tuberculosis" } }, + { + "name": "tb-prevention-dashboard-ext", + "slot": "tb-clinical-dashboard-slot", + "component": "tbPreventionDashboardLink", + "meta": { + "name": "tb-prevention", + "slot": "tb-prevention-dashboard-slot", + "config": { + "columns": 1, + "type": "grid", + "programme": "tpt", + "dashboardTitle": "TB Prevention" + }, + "title": "TB Prevention" + } + }, + { + "name": "tb-prevention-dashboard", + "slot": "tb-prevention-dashboard-slot", + "component": "tbPreventionDashboard", + "meta": { + "name": "tb-prevention", + "slot": "tb-prevention-dashboard-slot", + "config": { + "columns": 1, + "programme": "tpt", + "dashboardTitle": "TB Prevention" + }, + "title": "TB Prevention" + } + }, { "name": "tb-cases-dashboard-ext", "slot": "tb-clinical-dashboard-slot", @@ -198,37 +229,6 @@ "slot": "tb-home-tabs-slot", "component": "tbDashboardTabs" }, - { - "name": "tb-prevention-dashboard-ext", - "slot": "tb-clinical-dashboard-slot", - "component": "tbPreventionDashboardLink", - "meta": { - "name": "tb-prevention", - "slot": "tb-prevention-dashboard-slot", - "config": { - "columns": 1, - "type": "grid", - "programme": "tpt", - "dashboardTitle": "TB Prevention" - }, - "title": "TB Prevention" - } - }, - { - "name": "tb-prevention-dashboard", - "slot": "tb-prevention-dashboard-slot", - "component": "tbPreventionDashboard", - "meta": { - "name": "tb-prevention", - "slot": "tb-prevention-dashboard-slot", - "config": { - "columns": 1, - "programme": "tpt", - "dashboardTitle": "TB Prevention" - }, - "title": "TB Prevention" - } - }, { "name": "tpt-home-header-ext", "slot": "tpt-home-header-slot",