Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Update type for bannerSubContent and subContent #268

Merged

Conversation

edsonjab
Copy link
Contributor

Fix #265

@nd4p90x nd4p90x added the enhancement New feature or request label Sep 14, 2022
@@ -41,7 +41,7 @@ interface ContainerProps {
isConsentRequired: boolean
implyConsentOnInteraction: boolean
bannerContent: React.ReactNode
bannerSubContent: React.ReactNode
bannerSubContent: string | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it might make sense to have the type be React.ReactNode | string. That way you can apply your own styling to the sub-content by wrapping the contents in a span (or even include an img if you really wanted).

@MichaelGHSeg MichaelGHSeg merged commit 7944da3 into segmentio:master Nov 16, 2022
@edsonjab edsonjab deleted the update_consentManagerTypes branch April 1, 2023 01:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ConsentManagerProps not correct
4 participants