diff --git a/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch b/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch new file mode 100644 index 000000000..e0d126768 --- /dev/null +++ b/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch @@ -0,0 +1,16 @@ +diff --git a/Footer.js b/Footer.js +index e76610fb43f0fb5a472a8623f3f304dbec70f2fd..00838fc1112d7e67165d7f7fbccfe51a66f4435e 100644 +--- a/Footer.js ++++ b/Footer.js +@@ -68,9 +68,9 @@ export const Footer = memo(forwardRef((props, ref) => { + React.createElement("div", { className: cx(fr.cx("fr-footer__content"), classes.content) }, + contentDescription !== undefined && (React.createElement("p", { className: cx(fr.cx("fr-footer__content-desc"), classes.contentDesc) }, contentDescription)), + React.createElement("ul", { className: cx(fr.cx("fr-footer__content-list"), classes.contentList) }, [ +- "legifrance.gouv.fr", +- "gouvernement.fr", ++ "info.gouv.fr", + "service-public.fr", ++ "legifrance.gouv.fr", + "data.gouv.fr" + ].map((domain, i) => (React.createElement("li", { className: cx(fr.cx("fr-footer__content-item"), classes.contentItem), key: i }, + React.createElement("a", { className: cx(fr.cx("fr-footer__content-link"), classes.contentLink), target: "_blank", href: `https://${domain}`, title: `${domain} - ${t("open new window")}` }, domain))))))), diff --git a/packages/app/package.json b/packages/app/package.json index 759320cfe..022cfafd7 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -19,7 +19,7 @@ "migrateSimulations": "ts-node --project scripts/tsconfig.json scripts/sql-scripts/migrate-simulations.ts" }, "dependencies": { - "@codegouvfr/react-dsfr": "0.78.2", + "@codegouvfr/react-dsfr": "patch:@codegouvfr/react-dsfr@npm%3A0.78.2#~/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch", "@formkit/auto-animate": "^0.8.0", "@hookform/resolvers": "^3.1.1", "@json2csv/node": "^7.0.1", diff --git a/packages/app/src/app/Footer.tsx b/packages/app/src/app/Footer.tsx index 9246e2179..820dd49ff 100644 --- a/packages/app/src/app/Footer.tsx +++ b/packages/app/src/app/Footer.tsx @@ -1,5 +1,5 @@ import { headerFooterDisplayItem } from "@codegouvfr/react-dsfr/Display"; -import DsfrFooter, { type FooterProps as DsfrFooterProps } from "@codegouvfr/react-dsfr/Footer"; +import { Footer as DsfrFooter, type FooterProps as DsfrFooterProps } from "@codegouvfr/react-dsfr/Footer"; import { config } from "@common/config"; const githubLink = { diff --git a/yarn.lock b/yarn.lock index 0801aef3c..80ab2c9f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -455,6 +455,18 @@ __metadata: languageName: node linkType: hard +"@codegouvfr/react-dsfr@patch:@codegouvfr/react-dsfr@npm%3A0.78.2#~/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch": + version: 0.78.2 + resolution: "@codegouvfr/react-dsfr@patch:@codegouvfr/react-dsfr@npm%3A0.78.2#~/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch::version=0.78.2&hash=0f2ee9" + dependencies: + tsafe: "npm:^1.6.3" + bin: + copy-dsfr-to-public: bin/copy-dsfr-to-public.js + only-include-used-icons: bin/only-include-used-icons.js + checksum: f00e19433ad50cf5a699da6c1dea83fb951ec3aa27b44cd08fbcadaf0ef0f81fa2fa192fe44c9b9322de1212f34996f9fa9dfcdcc7c8baafb1561413b1cdeb80 + languageName: node + linkType: hard + "@colors/colors@npm:1.5.0": version: 1.5.0 resolution: "@colors/colors@npm:1.5.0" @@ -3330,7 +3342,7 @@ __metadata: resolution: "app@workspace:packages/app" dependencies: "@babel/core": "npm:^7.23.0" - "@codegouvfr/react-dsfr": "npm:0.78.2" + "@codegouvfr/react-dsfr": "patch:@codegouvfr/react-dsfr@npm%3A0.78.2#~/.yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch" "@faker-js/faker": "npm:^8.1.0" "@formkit/auto-animate": "npm:^0.8.0" "@hookform/devtools": "npm:^4.3.0"