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

fix: fix site links #2291

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading