Skip to content
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

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

maxgfr
Copy link
Member

@maxgfr maxgfr commented Oct 17, 2024

fix #6201

Copy link
Contributor

@m-maillot m-maillot left a 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>
Copy link
Contributor

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(() => {
Copy link
Contributor

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 ?

Copy link

Copy link
Contributor

@carolineBda carolineBda left a comment

Choose a reason for hiding this comment

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

top

@m-maillot m-maillot merged commit 833d144 into dev Oct 31, 2024
22 of 23 checks passed
@m-maillot m-maillot deleted the maxgfr/adblock-msg branch October 31, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ne pas charger l'encart "Avez-vous trouvé la réponse à votre question ?" si matomo n'est pas lancé
4 participants