Skip to content

Commit

Permalink
slight modification - the TB Prevention link comes first followed by…
Browse files Browse the repository at this point in the history
… TB Treatment
  • Loading branch information
lucyjemutai committed Jan 25, 2024
1 parent 8397b2c commit a68a35c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 38 deletions.
13 changes: 6 additions & 7 deletions packages/esm-tb-app/src/dashboard.meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down
62 changes: 31 additions & 31 deletions packages/esm-tb-app/src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit a68a35c

Please sign in to comment.