Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(refactor) Refactor reusable patient banner components #1209

Merged
merged 1 commit into from
Nov 20, 2024

Commits on Nov 19, 2024

  1. (refactor) Refactor reusable patient banner components

    This PR refactors the reusable patient banner components as follows:
    
    - Renames the component export from `PatientBannerPatientIdentifier` to `PatientBannerPatientInfoIdentifiers` to better describe its purpose. The pluralized name is more representative of the fact that it renders a list of identifiers.
    - Renames the `identifiers` array prop from `identifier` to `identifiers` to better describe its purpose.
    - Fixes incorrect usage of the `showIdentifierLabel` prop. Per its description, it should toggle the display of the identifier label, not the entire identifier.
    - Removes the `title` prop from the Carbon `Tag` component which has since been deprecated.
    - Adds a test for the `PatientBannerPatientInfoIdentifiers` component.
    
    - Adds a default export for the `PatientBannerPatientInfo` component.
    - Adds a test for the `PatientBannerPatientInfo` component.
    denniskigen committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    033ae2b View commit details
    Browse the repository at this point in the history