Skip to content

Commit

Permalink
Improve on radiology slot naming (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
makombe authored Jun 5, 2024
1 parent 76d6e42 commit 657748b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
24 changes: 12 additions & 12 deletions src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,53 +21,53 @@
"slot": "radiology-dashboard-slot"
},
{
"name": "tests-ordered-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-tests-ordered-tile-component",
"slot": "radiology-tiles-slot",
"component": "testOrderedTileComponent",
"meta": {
"name": "testsOrderedTileSlot",
"title": "Ordered tests"
}
},
{
"name": "worklist-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-worklist-tile-component",
"slot": "radiology-tiles-slot",
"component": "worklistTileComponent",
"meta": {
"name": "worklisTileSlot",
"title": "Worklist"
}
},
{
"name": "referred-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-referred-tile-component",
"slot": "radiology-tiles-slot",
"component": "referredTileComponent",
"meta": {
"name": "referredTileSlot",
"title": "Referred tests"
}
},
{
"name": "review-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-review-tile-component",
"slot": "radiology-tiles-slot",
"component": "reviewTileComponent",
"meta": {
"name": "reviewTileSlot",
"title": "Review"
}
},
{
"name": "approved-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-approved-tile-component",
"slot": "radiology-tiles-slot",
"component": "approveTileComponent",
"meta": {
"name": "approveTileSlot",
"title": "Approved"
}
},
{
"name": "notdone-tile-component",
"slot": "radio-tiles-slot",
"name": "radiology-notdone-tile-component",
"slot": "radiology-tiles-slot",
"component": "notDoneTileComponent",
"meta": {
"name": "notDoneTileSlot",
Expand Down
6 changes: 3 additions & 3 deletions src/summary-tiles/radiology-summary-tiles.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
import { ComponentContext } from "@openmrs/esm-framework/src/internal";

const RadiologySummaryTiles: React.FC = () => {
const radioTileSlot = "radio-tiles-slot";
const radiologyTileSlot = "radiology-tiles-slot";

const tilesExtensions = useConnectedExtensions(
radioTileSlot
radiologyTileSlot
) as AssignedExtension[];

return (
Expand All @@ -27,7 +27,7 @@ const RadiologySummaryTiles: React.FC = () => {
moduleName: extension.moduleName,
extension: {
extensionId: extension.id,
extensionSlotName: radioTileSlot,
extensionSlotName: radiologyTileSlot,
extensionSlotModuleName: extension.moduleName,
},
}}
Expand Down

0 comments on commit 657748b

Please sign in to comment.