-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat(dsfr): ajout d'un detecteur d'adblock pour éviter qu'un usager partage un message dans le vide #6226
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marche nickel ! Il faut valider le texte
export const FeedbackAdblock = () => { | ||
return ( | ||
<> | ||
<h2 className={fr.cx("fr-h5")}>Un adblock a été détecté.</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changer le terme adblock par bloqueur de publicité.
Peut être revoir le texte pour expliciter le fait que l'on n'affiche pas de pub sur le site.
export const useDetectAdBlock = () => { | ||
const [adBlockDetected, setAdBlockDetected] = useState(false); | ||
|
||
useEffect(() => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top comme méthode 👍
Est-ce que plutôt qu'un useEffect on devrait pas le faire lors du 1er click sur OUI ou NON ?
a749173
to
a0461b3
Compare
a0461b3
to
7438517
Compare
7438517
to
f9db471
Compare
…ovider de pub pour éviter de modifier les CSP (#6227)
f9db471
to
5d6be94
Compare
🎉 Deployment for commit 5d6be94 : IngressesDocker images
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
top
fix #6201