Skip to content

Commit

Permalink
fix #162
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Feb 27, 2024
1 parent b509d2e commit 6baa19c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion report/www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"prebuild": "only-include-used-icons"
},
"dependencies": {
"@codegouvfr/react-dsfr": "^1.7.2",
"@codegouvfr/react-dsfr": "^1.7.3",
"@emotion/react": "^11.11.3",
"@emotion/server": "^11.11.0",
"@emotion/styled": "^11.11.0",
Expand Down
1 change: 1 addition & 0 deletions report/www/src/components/LightHouse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ export const LightHouse: React.FC<LighthouseProps> = ({ data, url }) => {
/>
</div>
}
titleAs="h3"
info="Informations collectées par l'outil Google LightHouse"
urlText="Rapport LightHouse"
url={auditUrl}
Expand Down
3 changes: 3 additions & 0 deletions report/www/src/components/Panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import CallOut from "@codegouvfr/react-dsfr/CallOut";

type PanelProps = {
title: React.ReactNode;
titleAs?: "h2" | "h3" | "h4" | "h5" | "h6" | "p";
children: React.ReactNode;
info?: string | React.ReactNode;
url?: string;
Expand All @@ -17,6 +18,7 @@ export const Panel: React.FC<PanelProps> = ({
children,
url = null,
urlText = null,
titleAs = "h2",
target = "_blank",
}) => (
<CallOut
Expand All @@ -31,6 +33,7 @@ export const Panel: React.FC<PanelProps> = ({
undefined
}
title={title}
titleAs={titleAs}
>
{children}
</CallOut>
Expand Down
8 changes: 4 additions & 4 deletions report/www/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,10 @@
"@babel/helper-validator-identifier" "^7.22.20"
to-fast-properties "^2.0.0"

"@codegouvfr/react-dsfr@^1.7.2":
version "1.7.2"
resolved "https://registry.yarnpkg.com/@codegouvfr/react-dsfr/-/react-dsfr-1.7.2.tgz#c38a330333c9cdff60b20d8b1a7e0aebd89cd73d"
integrity sha512-4kZ1EajPQVelkneSzbn7EZbrVBdukWUBsy+RsHBXf9a+JRvgYS3xlf7jDmc70tuEHF/824pShue7kDvoR6uxnw==
"@codegouvfr/react-dsfr@^1.7.3":
version "1.7.3"
resolved "https://registry.yarnpkg.com/@codegouvfr/react-dsfr/-/react-dsfr-1.7.3.tgz#a4ee4406963843f032d84cd3751210e068c64f64"
integrity sha512-aKojpjkB2iIXmhdbkCnUTrQ1SReu1GHwynPzXww1mbr90us4DFLs79IZ9XjVxA65A/oa4nQtAus0Up5XYfPAdw==
dependencies:
tsafe "^1.6.3"
yargs-parser "^21.1.1"
Expand Down

0 comments on commit 6baa19c

Please sign in to comment.