diff --git a/report/www/package.json b/report/www/package.json index ee9c8185..19c0cebd 100644 --- a/report/www/package.json +++ b/report/www/package.json @@ -14,7 +14,7 @@ "prebuild": "only-include-used-icons" }, "dependencies": { - "@codegouvfr/react-dsfr": "^1.2.2", + "@codegouvfr/react-dsfr": "^1.7.2", "@emotion/react": "^11.11.3", "@emotion/server": "^11.11.0", "@emotion/styled": "^11.11.0", diff --git a/report/www/pages/_app.tsx b/report/www/pages/_app.tsx index 5d1e1b13..c5e67424 100644 --- a/report/www/pages/_app.tsx +++ b/report/www/pages/_app.tsx @@ -36,18 +36,20 @@ const { withDsfr, dsfrDocumentApi } = createNextDsfrIntegrationApi({ const { locale = "fr" } = useRouter(); return locale; }, - preloadFonts: !!dashlordConfig.marianne && [ - //"Marianne-Light", - //"Marianne-Light_Italic", - "Marianne-Regular", - //"Marianne-Regular_Italic", - "Marianne-Medium", - //"Marianne-Medium_Italic", - "Marianne-Bold", - //"Marianne-Bold_Italic", - //"Spectral-Regular", - //"Spectral-ExtraBold" - ], + preloadFonts: + (!!dashlordConfig.marianne && [ + //"Marianne-Light", + //"Marianne-Light_Italic", + "Marianne-Regular", + //"Marianne-Regular_Italic", + "Marianne-Medium", + //"Marianne-Medium_Italic", + "Marianne-Bold", + //"Marianne-Bold_Italic", + //"Spectral-Regular", + //"Spectral-ExtraBold" + ]) || + [], }); export { dsfrDocumentApi }; diff --git a/report/www/pages/tag/[tag].tsx b/report/www/pages/tag/[tag].tsx index 707540a8..ef3cc1e1 100644 --- a/report/www/pages/tag/[tag].tsx +++ b/report/www/pages/tag/[tag].tsx @@ -3,14 +3,16 @@ import Head from "next/head"; import uniq from "lodash.uniq"; import { Dashboard } from "../../src/components/Dashboard"; -import dashlordConfig from '@/config.json'; +import dashlordConfig from "@/config.json"; const report: DashLordReport = require("../../src/report.json"); const Tag = ({ report, tag }: { report: DashLordReport; tag: string }) => { return ( <>
-