-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8600898
commit 7613aa7
Showing
4 changed files
with
6 additions
and
9 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/code-du-travail-frontend/src/modules/layout/ContainerWidget.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
packages/code-du-travail-frontend/src/modules/privacy-policy/TrackApproval.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
"use client"; | ||
import { useIsDark } from "@codegouvfr/react-dsfr/useIsDark"; | ||
|
||
export const TrackApproval = () => { | ||
const { isDark } = useIsDark(); | ||
const iframeParams = isDark | ||
? "module=CoreAdminHome&action=optOut&language=fr&backgroundColor=161616&fontColor=cecece&fontSize=16px&fontFamily=sans-serif" | ||
: "module=CoreAdminHome&action=optOut&language=fr&backgroundColor=&fontColor=3a3a3a&fontSize=16px&fontFamily=sans-serif"; | ||
return ( | ||
<iframe | ||
title="Utilisation des cookies Matomo" | ||
style={{ border: 0, width: "100%" }} | ||
src={`https://matomo.fabrique.social.gouv.fr/index.php?${iframeParams}`} | ||
src={`https://matomo.fabrique.social.gouv.fr/index.php?module=CoreAdminHome&action=optOut&language=fr&backgroundColor=&fontColor=3a3a3a&fontSize=16px&fontFamily=sans-serif`} | ||
/> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters