forked from openmrs/openmrs-esm-laboratory-app
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
299 additions
and
73 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
src/approved-orders/print-order-results-menu-item.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { useCallback } from "react"; | ||
import { OverflowMenuItem } from "@carbon/react"; | ||
import { Order } from "@openmrs/esm-patient-common-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
interface PrintOrderResultsActionMenuProps { | ||
order: Order; | ||
closeModal: () => void; | ||
} | ||
|
||
const PrintResultsActionMenu: React.FC<PrintOrderResultsActionMenuProps> = ({ | ||
order, | ||
}) => { | ||
const { t } = useTranslation(); | ||
// const launchPickLabRequestModal = useCallback(() => { | ||
// const dispose = showModal("add-to-worklist-dialog", { | ||
// closeModal: () => dispose(), | ||
// order, | ||
// }); | ||
// }, [order]); | ||
|
||
return ( | ||
<OverflowMenuItem | ||
itemText={"Print Results"} | ||
onClick={() => {}} | ||
style={{ | ||
maxWidth: "100vw", | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default PrintResultsActionMenu; |
2 changes: 1 addition & 1 deletion
2
src/lab-tabs/approved-tab.component.tsx → ...laboratory-tab/approved-tab.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/lab-tabs/referred-tab.component.tsx → ...laboratory-tab/referred-tab.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/lab-tabs/rejected-tab.component.tsx → ...laboratory-tab/rejected-tab.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/lab-tabs/review-tab.component.tsx → ...s/laboratory-tab/review-tab.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/lab-tabs/work-list-tab.component.tsx → ...aboratory-tab/work-list-tab.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
@use '@carbon/styles/scss/spacing'; | ||
@use '@carbon/styles/scss/type'; | ||
@use '@carbon/styles/scss/colors'; | ||
@import "~@openmrs/esm-styleguide/src/vars"; | ||
@import '../root.scss'; | ||
|
||
.orderTabsContainer { | ||
height: 100%; | ||
width: 100%; | ||
|
||
:global(.cds--tab-content) { | ||
padding: 0 !important; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rders/pick-lab-request-menu.component.tsx → ...ctions/pick-test-order-menu.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/referred-orders/add-or-edit-referred-order-menu-item.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React, { useCallback } from "react"; | ||
import { OverflowMenuItem } from "@carbon/react"; | ||
import { Order } from "@openmrs/esm-patient-common-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
interface ReferredOrderActionMenuProps { | ||
isEditing: boolean; | ||
order: Order; | ||
closeModal: () => void; | ||
} | ||
|
||
const ReferredOrderActionMenu: React.FC<ReferredOrderActionMenuProps> = ({ | ||
isEditing, | ||
order, | ||
}) => { | ||
const { t } = useTranslation(); | ||
// const launchPickLabRequestModal = useCallback(() => { | ||
// const dispose = showModal("add-to-worklist-dialog", { | ||
// closeModal: () => dispose(), | ||
// order, | ||
// }); | ||
// }, [order]); | ||
|
||
return ( | ||
<OverflowMenuItem | ||
itemText={isEditing ? "Edit Results" : "Add Results"} | ||
onClick={() => {}} | ||
style={{ | ||
maxWidth: "100vw", | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default ReferredOrderActionMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/referred-orders/reject-referred-order-menu-item.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import React, { useCallback } from "react"; | ||
import { OverflowMenuItem } from "@carbon/react"; | ||
import { Order } from "@openmrs/esm-patient-common-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
interface RejectOrderActionMenuProps { | ||
order: Order; | ||
closeModal: () => void; | ||
} | ||
|
||
const RejectOrderActionMenu: React.FC<RejectOrderActionMenuProps> = ({ | ||
order, | ||
}) => { | ||
const { t } = useTranslation(); | ||
// const launchPickLabRequestModal = useCallback(() => { | ||
// const dispose = showModal("add-to-worklist-dialog", { | ||
// closeModal: () => dispose(), | ||
// order, | ||
// }); | ||
// }, [order]); | ||
|
||
return ( | ||
<OverflowMenuItem | ||
itemText={"Reject Order"} | ||
onClick={() => {}} | ||
style={{ | ||
maxWidth: "100vw", | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default RejectOrderActionMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
34 changes: 34 additions & 0 deletions
34
src/reviewed-orders/edit-or-review-order-results-menu-item.component.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import React, { useCallback } from "react"; | ||
import { OverflowMenuItem } from "@carbon/react"; | ||
import { Order } from "@openmrs/esm-patient-common-lib"; | ||
import { useTranslation } from "react-i18next"; | ||
|
||
interface ReviewOrEditOrderResultsActionMenuProps { | ||
isEditing: boolean; | ||
order: Order; | ||
closeModal: () => void; | ||
} | ||
|
||
const AddOrderResultsActionMenu: React.FC< | ||
ReviewOrEditOrderResultsActionMenuProps | ||
> = ({ isEditing, order }) => { | ||
const { t } = useTranslation(); | ||
// const launchPickLabRequestModal = useCallback(() => { | ||
// const dispose = showModal("add-to-worklist-dialog", { | ||
// closeModal: () => dispose(), | ||
// order, | ||
// }); | ||
// }, [order]); | ||
|
||
return ( | ||
<OverflowMenuItem | ||
itemText={isEditing ? "Edit Results" : "Approve Results"} | ||
onClick={() => {}} | ||
style={{ | ||
maxWidth: "100vw", | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default AddOrderResultsActionMenu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.