1uphealth / fhir-react

FHIR React Component Library
MIT License
100 stars 30 forks source link

Patientapp 96 add a flexible icon to the explanation of benefit component #305

Closed jaceksanko closed 2 years ago

jaceksanko commented 2 years ago

Issue: PATIENTAPP-96


PR Checklist

Why are these changes needed?

Because the icons in the ExplanationOfBenefit component are not working.

What changed?

An icon has been added in the header props in the ExplanationOfBenefit component. Added the string "ExplanationOfBenefit" as a resourceName in the header props in the ExplanationOfBenefit component. Icons have been added to the ExplanationOfBenefit stories from various sources. New tests have been added to the ExplanationOfBenefit component. The function convertCamelCaseToSentence has been added to convert the camel case the resourceName to sentence.

How are these changes tested?

The changes have been tested by unit tests and the storybook.