Skip to content
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.

Message prop prop-types configuration. #60

@Huespal

Description

@Huespal

Proptypes complains about sending a message prop to component different than string.

Warning: Failed prop type: Invalid prop 'message' of type 'object' supplied to 'CookieBanner', expected 'string'. in CookieBanner

I'm sending a span with html to allow links (also styled text) to the message prop. It works but proptypes complains with previous annoying warning. This is my message:

<span dangerouslySetInnerHTML={{ __html: '<a href="https://www.google.com">Link!</a>' }} />

Can the component be updated to allow multiple prop types for message prop, not only strings?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions