Skip to content

Commit

Permalink
Revert "Update billable services workspace (#267)"
Browse files Browse the repository at this point in the history
This reverts commit 5b81cb1.
  • Loading branch information
donaldkibet authored Aug 6, 2024
1 parent 5b81cb1 commit fdacc68
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 428 deletions.
1 change: 0 additions & 1 deletion kenyaemr-esm-3.x
Submodule kenyaemr-esm-3.x deleted from a0a110
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ import {
ErrorState,
navigate,
WorkspaceContainer,
launchWorkspace,
} from '@openmrs/esm-framework';
import { EmptyState } from '@openmrs/esm-patient-common-lib';
import styles from './billable-services.scss';
import { useTranslation } from 'react-i18next';
import { useBillableServices } from './billable-service.resource';
import { ArrowRight, Edit } from '@carbon/react/icons';
import { ArrowRight } from '@carbon/react/icons';

const BillableServices = () => {
const { t } = useTranslation();
Expand All @@ -46,12 +45,6 @@ const BillableServices = () => {
const [showOverlay, setShowOverlay] = useState(false);
const [overlayHeader, setOverlayTitle] = useState('');

const handleEditClick = (service) => {
launchWorkspace('update-billable-services-workspace', {
service,
});
};

const headerData = [
{
header: t('serviceName', 'Service Name'),
Expand Down Expand Up @@ -110,7 +103,7 @@ const BillableServices = () => {
serviceType: service?.serviceType?.display,
status: service.serviceStatus,
prices: '--',
actions: <Edit onClick={() => handleEditClick(service)} style={{ cursor: 'pointer' }} />,
actions: '--',
};
let cost = '';
service.servicePrices.forEach((price) => {
Expand Down Expand Up @@ -145,7 +138,6 @@ const BillableServices = () => {

return (
<>
<WorkspaceContainer overlay contextKey="billable-services" />
{billableServices?.length > 0 ? (
<div className={styles.serviceContainer}>
<FilterableTableHeader
Expand Down
Loading

0 comments on commit fdacc68

Please sign in to comment.