Skip to content

Commit

Permalink
fix: fix site links (#2291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 authored May 24, 2024
1 parent 3c725c3 commit 674c930
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .yarn/patches/@codegouvfr-react-dsfr-npm-0.78.2-9b92c7917d.patch
Original file line number Diff line number Diff line change
@@ -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))))))),
2 changes: 1 addition & 1 deletion packages/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/app/Footer.tsx
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
14 changes: 13 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 674c930

Please sign in to comment.