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:
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.