-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/openmrs/openmrs-esm-patient…
…-management into fix/metrics
- Loading branch information
Showing
16 changed files
with
137 additions
and
239 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
set -e # die on error | ||
|
||
# yarn verify | ||
yarn verify |
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
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
87 changes: 0 additions & 87 deletions
87
...ages/esm-ward-app/src/ward-patient-card/row-elements/ward-patient-coded-obs-tags.tsx.orig
This file was deleted.
Oops, something went wrong.
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
32 changes: 32 additions & 0 deletions
32
packages/esm-ward-app/src/ward-patient-card/row-elements/ward-patient-responsive-tooltip.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,32 @@ | ||
import { Toggletip, ToggletipButton, ToggletipContent, Tooltip } from '@carbon/react'; | ||
import { isDesktop, useLayoutType } from '@openmrs/esm-framework'; | ||
import React, { type ReactNode } from 'react'; | ||
import styles from '../ward-patient-card.scss'; | ||
|
||
interface WardPatientResponsiveTooltipProps { | ||
children: ReactNode; | ||
tooltipContent: ReactNode; | ||
} | ||
|
||
/** | ||
* This component acts as a Tooltip on desktop and a Toggletip on mobile. | ||
*/ | ||
const WardPatientResponsiveTooltip: React.FC<WardPatientResponsiveTooltipProps> = ({ children, tooltipContent }) => { | ||
const layout = useLayoutType(); | ||
if (isDesktop(layout)) { | ||
return ( | ||
<Tooltip description={tooltipContent} className={styles.responsiveTooltip}> | ||
{children} | ||
</Tooltip> | ||
); | ||
} else { | ||
return ( | ||
<Toggletip className={styles.responsiveTooltip}> | ||
<ToggletipButton>{children}</ToggletipButton> | ||
<ToggletipContent>{tooltipContent}</ToggletipContent> | ||
</Toggletip> | ||
); | ||
} | ||
}; | ||
|
||
export default WardPatientResponsiveTooltip; |
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
Oops, something went wrong.