From 8897735476623c90b82fa8bdf0c459b665c29223 Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Thu, 5 Sep 2024 07:29:15 +0200 Subject: [PATCH] #293 --- src/next-appdir/DsfrHead.tsx | 41 +++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/src/next-appdir/DsfrHead.tsx b/src/next-appdir/DsfrHead.tsx index 4c7ae84d0..ec10ec5db 100644 --- a/src/next-appdir/DsfrHead.tsx +++ b/src/next-appdir/DsfrHead.tsx @@ -1,4 +1,4 @@ -import React, { useMemo } from "react"; +import React, { useMemo, Suspense } from "react"; import { objectKeys } from "tsafe/objectKeys"; import { getAssetUrl } from "../tools/getAssetUrl"; import AppleTouchIcon from "../dsfr/favicon/apple-touch-icon.png"; @@ -14,7 +14,7 @@ import { assert } from "tsafe/assert"; // @import url(...) doesn't work. Using Sass and @use is our last resort. import "../assets/dsfr_plus_icons.scss"; // eslint-disable-next-line @typescript-eslint/no-unused-vars -- used in doc -import { type startReactDsfr } from "./zz_internal/start"; +import type { startReactDsfr } from "./zz_internal/start"; export type DsfrHeadProps = { /** If not provided no fonts are preloaded. @@ -94,27 +94,34 @@ export function DsfrHead(props: DsfrHeadProps) { )} -