-
Notifications
You must be signed in to change notification settings - Fork 241
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
(chore) Bump framework and update patient banner props #1342
Conversation
Size Change: +362 kB (+5.9%) 🔍 Total Size: 6.49 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this, @vasharma05. I've taken the liberty of pushing a commit that, among other small tweaks:
- Also updates the version of the Common Lib dependency (in the hopes of fixing this issue)
- Switching from using
String(Math.random())
to generate random UUIDs for thename
andaddress
properties of the FHIR patient object to usinguuidv4
which actually generates unique v4 UUIDs.
import React, { forwardRef, useContext, useMemo } from 'react'; | ||
import classNames from 'classnames'; | ||
import { v4 as uuidv4 } from 'uuid'; | ||
import { useTranslation } from 'react-i18next'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change just reorganises the imports (note to self to prioritise work on adding https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md to our ESLint config for automatically handling this concern)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's amazing!
interface ClickablePatientContainerProps { | ||
patientUuid: string; | ||
children: React.ReactNode; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just lifted this interface higher up in the file.
Requirements
Summary
This PR bumps the framework and openmrs tooling, and updates the patient banner props following the changes in openmrs/openmrs-esm-core#1158
Screenshots
None
Related Issue
None
Other