You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make a ConditionalEmbed component which, given a text containing the iframe or given a url, will show or not show its children according to the user's choices. If it does not show the children because the user has denied consent, it must display a message such as: message defined in the configuration + "Click here to enable them, or click here to change your preferences. ".
For example:
constConditionalEmbed=({embedCode, embedUrl, children})=>{
.....returnenabled
? <>{children}</>
: (<divclassName="conditional-embed-message">{config.conditional_embed_text??defaultMessage}. Click <ahref=""onClick=()=>{enableCookies()}>here</a>
to enable them or click <ahref=""onClick={openCookieBannerPref()}>here</a> to change your preferences.
</div>);}
The text was updated successfully, but these errors were encountered:
Make a ConditionalEmbed component which, given a text containing the iframe or given a url, will show or not show its children according to the user's choices. If it does not show the children because the user has denied consent, it must display a message such as: message defined in the configuration + "Click here to enable them, or click here to change your preferences. ".
For example:
The text was updated successfully, but these errors were encountered: