Skip to content

Commit

Permalink
O3-2822 Hide the tiles on the billing services management page (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
ODORA0 authored Feb 8, 2024
1 parent 65b8978 commit b92b8c2
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/billable-services/dashboard/service-metrics.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { ErrorState } from '@openmrs/esm-patient-common-lib';
import { useBillableServices } from '../billable-service.resource';
import Card from '../../metrics-cards/card.component';
import styles from '../../metrics-cards/metrics-cards.scss';
import { ExtensionSlot } from '@openmrs/esm-framework';

export default function ServiceMetrics() {
const { t } = useTranslation();
Expand Down Expand Up @@ -35,6 +36,7 @@ export default function ServiceMetrics() {
{cards.map((card) => (
<Card key={card.title} title={card.title} count={card.count} />
))}
<ExtensionSlot name="billing-home-tiles-slot" />
</section>
);
}
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import BillingForm from './billing-form/billing-form.component';
import RequirePaymentModal from './modal/require-payment-modal.component';
import RootComponent from './root.component';
import VisitAttributeTags from './invoice/payments/visit-tags/visit-attribute.component';
import BillableServicesDashboard from './billable-services/dashboard/dashboard.component';
import ServiceMetrics from './billable-services/dashboard/service-metrics.component';

const moduleName = '@openmrs/esm-billing-app';

Expand Down Expand Up @@ -39,6 +41,11 @@ export const billingSummaryDashboardLink = getSyncLifecycle(
options,
);

export const billingServicesTiles = getSyncLifecycle(ServiceMetrics, {
featureName: 'billing-home-tiles',
moduleName,
});

export const billableServicesCardLink = getSyncLifecycle(BillableServicesCardLink, options);
export const billableServicesHome = getSyncLifecycle(BillableServiceHome, options);
export const billingCheckInForm = getSyncLifecycle(BillingCheckInForm, options);
Expand Down
5 changes: 5 additions & 0 deletions src/routes.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@
"component": "visitAttributeTags",
"slot": "patient-banner-tags-slot",
"order": 2
},
{
"name": "billing-home-tiles-ext",
"slot": "billing-home-tiles-slot",
"component": "billingServicesTiles"
}
]
}

0 comments on commit b92b8c2

Please sign in to comment.