-
Notifications
You must be signed in to change notification settings - Fork 44
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
12 changed files
with
284 additions
and
63 deletions.
There are no files selected for viewing
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
37 changes: 37 additions & 0 deletions
37
src/patient-chart/laboratory-item/view-laboratory-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,37 @@ | ||
import { showModal, useSession } from "@openmrs/esm-framework"; | ||
import React, { useCallback } from "react"; | ||
import { useTranslation } from "react-i18next"; | ||
import { Button, Tooltip } from "@carbon/react"; | ||
import { View } from "@carbon/react/icons"; | ||
import { launchPatientWorkspace } from "@openmrs/esm-patient-common-lib"; | ||
|
||
interface ViewLaboratoryItemActionMenuProps { | ||
closeModal: () => void; | ||
} | ||
|
||
const ViewLaboratoryItemActionMenu: React.FC< | ||
ViewLaboratoryItemActionMenuProps | ||
> = () => { | ||
const { t } = useTranslation(); | ||
|
||
const handleClick = useCallback( | ||
() => | ||
launchPatientWorkspace("results-summary", { | ||
workspaceTitle: `Results Summary Form`, | ||
}), | ||
[] | ||
); | ||
|
||
return ( | ||
<Tooltip align="bottom" label="View Results"> | ||
<Button | ||
kind="ghost" | ||
onClick={handleClick} | ||
iconDescription={t("viewResults", "View Results ")} | ||
renderIcon={(props) => <View size={16} {...props} />} | ||
></Button> | ||
</Tooltip> | ||
); | ||
}; | ||
|
||
export default ViewLaboratoryItemActionMenu; |
Empty file.
Empty file.
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.
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,9 @@ | ||
@use '@carbon/styles/scss/spacing'; | ||
@use '@carbon/styles/scss/type'; | ||
@import "~@openmrs/esm-styleguide/src/vars"; | ||
@import '../root.scss'; | ||
.headerBtnContainer { | ||
background-color: $ui-background; | ||
padding: spacing.$spacing-05; | ||
text-align: right; | ||
} |
7 changes: 7 additions & 0 deletions
7
src/patient-chart/results-summary/results-summary.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,7 @@ | ||
import React from "react"; | ||
|
||
const ResultsSummary = () => { | ||
return <span>Laboratory Results</span>; | ||
}; | ||
|
||
export default ResultsSummary; |
Empty file.
Empty file.
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