Skip to content

Commit

Permalink
fix: add tests ordered empty state
Browse files Browse the repository at this point in the history
  • Loading branch information
jabahum committed Sep 26, 2023
1 parent 6597ac7 commit e3898bb
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/queue-list/lab-tests/lab-tests.resource.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export function useLabTests() {
return {
data: {},
count: 0,
};
}
12 changes: 12 additions & 0 deletions src/queue-list/lab-tests/lab-tests.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@use '@carbon/styles/scss/spacing';
@use '@carbon/styles/scss/type';
@import "~@openmrs/esm-styleguide/src/vars";

.cardContainer {
background-color: $ui-02 ;
display: flex;
justify-content: space-between;
padding: 0 spacing.$spacing-05 spacing.$spacing-10 spacing.$spacing-03;
flex-flow: row wrap;
margin-top: - spacing.$spacing-03;
}
8 changes: 8 additions & 0 deletions src/queue-list/laboratory-patient-list.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
import LabTests from "./lab-tests/lab-tests.component";
import AddToWorklist from "./lab-dialogs/add-to-worklist-dialog.component";
import PickLabRequestActionMenu from "./pick-lab-request-menu.component";
import { EmptyState } from "@openmrs/esm-patient-common-lib";

// type FilterProps = {
// rowIds: Array<string>;
Expand Down Expand Up @@ -258,6 +259,13 @@ const LaboratoryPatientList: React.FC<LaboratoryPatientListProps> = () => {
</div>
);
}

return (
<div>
<div className={styles.headerBtnContainer}></div>
<EmptyState displayText={"Tests Ordered"} headerTitle={"Tests Ordered"} />
</div>
);
};

export default LaboratoryPatientList;

0 comments on commit e3898bb

Please sign in to comment.