Skip to content

Commit

Permalink
(chore) : use framework @carbon/react version (#562)
Browse files Browse the repository at this point in the history
* (chore) : use framework version for carbon dependencies

* (fix) : follow convention on translations
  • Loading branch information
donaldkibet authored Jan 21, 2025
1 parent b524104 commit 2a96b0e
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 272 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"*.{js,jsx,ts,tsx}": "eslint --cache --fix"
},
"dependencies": {
"@carbon/charts-react": "^1.13.33",
"@hookform/resolvers": "^3.1.1",
"ace-builds": "^1.36.5",
"classnames": "^2.3.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-admin-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-3.x/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-billing-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const SHANumberValidity: React.FC<SHANumberValidityProps> = ({ paymentMethod, pa
if (!isRegisteredOnSHA) {
return (
<InlineNotification
title={t('HIEVerificationFailure', 'HIE verification failure')}
title={t('hieVerificationFailure', 'HIE verification failure')}
subtitle={`${data?.message ?? ''}.${data?.possibleSolution ?? ''}`}
className={styles.missingSHANumber}
/>
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-billing-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"finalDiagnosis": "Final Diagnosis",
"formTitle": "Fill in the form details",
"generatedMessage": "The invoice has been electronically generated and is a valid document. It was created by {{userName}} on {{date}} at {{time}}",
"hieVerificationFailure": "HIE verification failure",
"home": "Home",
"identifier": "Identifier",
"inactive": "Inactive",
Expand Down Expand Up @@ -200,7 +201,6 @@
"paymentPoints": "Payment Points",
"payments": "Payments",
"paymentType": "Payment Type",
"pendingHIEVerification": "Pending HIE verification",
"Phone Number": "Phone Number",
"pickLabRequest": "Pick Lab Request",
"policyNumber": "Policy number",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-care-panel-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-cross-border-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-lab-manifest-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-morgue-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-patient-clinical-view-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@
},
"dependencies": {
"@carbon/charts-react": "^1.5.2",
"@carbon/react": "^1.72.0",
"d3": "^7.6.1",
"lodash-es": "^4.17.21"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-patient-flags-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-pharmacy-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-providers-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-3.x/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-shr-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15",
"react-to-print": "^2.14.13"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "7.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
2 changes: 1 addition & 1 deletion packages/esm-version-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"url": "https://github.com/palladiumkenya/kenyaemr-esm-core/issues"
},
"dependencies": {
"@carbon/react": "^1.72.0",
"lodash-es": "^4.17.15"
},
"peerDependencies": {
"@carbon/react": "1.x",
"@openmrs/esm-framework": "5.x",
"react": "^18.1.0",
"react-i18next": "11.x",
Expand Down
Loading

0 comments on commit 2a96b0e

Please sign in to comment.